Talk:Sequence of non-squares: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 71: | Line 71: | ||
The task only asks to check that there are no squares in the sequence, but then we don't check that there are all non-squares ! However, it's easy to keep track of "the next square to come", and check that we go through all integers up to that number, then compute the next square, etc. Easiest with a generator, but a loop will do. |
The task only asks to check that there are no squares in the sequence, but then we don't check that there are all non-squares ! However, it's easy to keep track of "the next square to come", and check that we go through all integers up to that number, then compute the next square, etc. Easiest with a generator, but a loop will do. |
||
[[User:Toucan|Toucan]] 08:27, 15 June 2011 (UTC) |
[[User:Toucan|Toucan]] 08:27, 15 June 2011 (UTC) |
||
:What's the difference between "there are no squares" and "they are all non-squares"? --[[User:Ledrug|Ledrug]] 18:53, 15 June 2011 (UTC) |