OFFSET
1,2
COMMENTS
LINKS
Michel Marcus, Table of n, a(n) for n = 1..4950
Mathematical Reflections, Solution to Problem O349, Issue 6, 2015, p. 19.
EXAMPLE
3 whose sqrt is 1.732... does not belong to this sequence.
5 whose sqrt is 2.236... belongs to this sequence.
MATHEMATICA
Select[Range[0, 150], EvenQ[Floor[Sqrt[#]]]&] (* Harvey P. Dale, Jun 06 2024 *)
PROG
(PARI) isok(n) = (sqrtint(n) % 2) == 0; \\ Michel Marcus, Jan 07 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michel Marcus, Jan 07 2017
STATUS
approved