Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • \$\begingroup\$ x-int(x) -> x%1. I am impressed :) \$\endgroup\$ Commented Jun 18, 2012 at 20:30
  • \$\begingroup\$ Gives the wrong result for √139 according to Wolfram Alpha \$\endgroup\$ Commented Jun 18, 2012 at 21:41
  • \$\begingroup\$ I've updated it to work for √139. However, if the length of the sequence gets much longer (√139 has a sequence of 18 numbers), then the result will probably start to lose accuracy. \$\endgroup\$ Commented Jun 19, 2012 at 4:32
  • \$\begingroup\$ I find it incredibly interesting that it always ends in 2*int(sqrt(a)). \$\endgroup\$ Commented Jun 19, 2012 at 14:42
  • \$\begingroup\$ Further interesting is now 3 of us have broken code for 139 (mine is still un-golfed and un-posted). \$\endgroup\$ Commented Jun 21, 2012 at 18:50