An arithmetic puzzle, equality of numbers.
- To: mathgroup at smc.vnet.net
- Subject: [mg103086] An arithmetic puzzle, equality of numbers.
- From: Richard Fateman <fateman at cs.berkeley.edu>
- Date: Mon, 7 Sep 2009 02:37:06 -0400 (EDT)
For[i = 1.11111111111111111111, i > 0, Print[i = 2*i - i]] This came to my attention (again), and I thought it might amuse current readers of this newsgroup. What looks like an infinite loop terminates with i==0 being true. also i==2 is true. (Tested in Mathematica 6.0; I don't have access to 7 yet.)
- Follow-Ups:
- Re: An arithmetic puzzle, equality of numbers.
- From: Syd Geraghty <sydgeraghty@me.com>
- Re: An arithmetic puzzle, equality of numbers.