Talk:Hailstone sequence: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 33:
: Might it be integer overflow? --[[User:Paddy3118|Paddy3118]] 19:44, 13 July 2010 (UTC)
: I doubt it, since 113383 is not a power of 2 and the next few integers work fine all the way up to 134379, which is the next number that does this.
: It seems to have something to do with the DO-loop since if i remove the loop (essentially making a program that does only one iteration of the hailstone sequence) the arithmetic works fine.
Anonymous user