A227453 Numbers k such that the distance to the largest square less than k is a multiple of 4.
8, 13, 20, 24, 29, 33, 40, 44, 48, 53, 57, 61, 68, 72, 76, 80, 85, 89, 93, 97, 104, 108, 112, 116, 120, 125, 129, 133, 137, 141, 148, 152, 156, 160, 164, 168, 173, 177, 181, 185, 189, 193, 200, 204, 208, 212, 216, 220, 224, 229, 233, 237, 241, 245, 249, 253, 260, 264, 268, 272, 276, 280
Offset: 1
Keywords
Examples
8 - 2^2 = 1*4 and 24 - 4^2 = 2*4 so 8 and 24 are in the sequence.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
lsm4Q[n_]:=Module[{s=Floor[Sqrt[n]]^2},s
Harvey P. Dale, Jun 20 2014 *) -
PARI
is(n)=(n-sqrtint(n-1)^2)%4==0
Comments