Jump to content

Sequence of non-squares: Difference between revisions

m
added whitespace.
(Added Wren)
m (added whitespace.)
Line 3:
;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]]:
<big> n + floor(1/2 + sqrt(n)) </big>
* Print out the values for &nbsp; <big> n </big> &nbsp; in the range &nbsp; '''1''' &nbsp; to &nbsp; '''22'''
* Show that no squares occur for &nbsp; <big> n </big> &nbsp; less than one million
Cookies help us deliver our services. By using our services, you agree to our use of cookies.