login
A280682
Integers m such that floor(sqrt(m)) is even.
1
0, 4, 5, 6, 7, 8, 16, 17, 18, 19, 20, 21, 22, 23, 24, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120
OFFSET
1,2
COMMENTS
Also integers m such that Sum_{k=1..m} floor(k/m) is even (cf. A006218). See the Mathematical Reflections link.
This sequence is composed of blocks of 1,5,9,13,... (A016813:4n+1) consecutive terms, separated by 3,7,11,15,... (A004767:4n+3) consecutive terms.
LINKS
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