OFFSET
1,2
COMMENTS
EXAMPLE
For k=77, ceiling(sqrt(k)) is 9, so we evaluate 9^2 - 77 = 4, which is a square, so 77 is a term.
Let k=97, 100 - 97 = 3 is not a square and is not a term.
MATHEMATICA
Select[Range[2000], CoprimeQ[#, 30] && IntegerQ @ Sqrt[Ceiling[Sqrt[#]]^2 - #] &] (* Amiram Eldar, Jun 23 2021 *)
PROG
(PARI) genit(minn=1, maxx)={arr=List(); forstep(w=minn, maxx, 2, if(w%5==0||w%6==3, next); z=sqrtint(w-1)+1; if(issquare(z^2-w)>0, listput(arr, w); next)); arr}
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bill McEachen, Jun 15 2021
STATUS
approved