Sequence of non-squares: Difference between revisions

m
added whitespace and highlighting to the task's preamble.
m (Moved a comment out of the task's requirements.)
m (added whitespace and highlighting to the task's preamble.)
Line 4:
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))
* 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