Sequence of non-squares: Difference between revisions
Content added Content deleted
(Added Wren) |
m (added whitespace.) |
||
Line 3: | Line 3: | ||
;Task: |
;Task: |
||
Show that the following remarkable formula gives the [http://www.research.att.com/~njas/sequences/A000037 sequence] of non-square [[wp:Natural_number|natural numbers]]: |
Show that the following remarkable formula gives the [http://www.research.att.com/~njas/sequences/A000037 sequence] of non-square [[wp:Natural_number|natural numbers]]: |
||
n + floor(1/2 + sqrt(n)) |
<big> n + floor(1/2 + sqrt(n)) </big> |
||
* Print out the values for <big> n </big> in the range '''1''' to '''22''' |
* Print out the values for <big> n </big> in the range '''1''' to '''22''' |
||
* Show that no squares occur for <big> n </big> less than one million |
* Show that no squares occur for <big> n </big> less than one million |