login
A189463
a(n) = [3*n*r] - 3*[n*r], where r=sqrt(5).
5
0, 1, 2, 2, 0, 1, 1, 2, 0, 1, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 2, 0, 1, 1, 2, 0, 1, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 2, 0, 1, 2, 2, 0, 1, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 2, 0, 1, 2, 2, 0, 1, 1, 2, 0, 1, 1, 2, 0, 0, 1, 2, 2, 0, 1, 2, 2, 0, 1, 1, 2, 0, 1, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 2, 0, 1, 1, 2, 0, 1, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 2, 0, 1, 2, 2, 0, 1, 1, 2
OFFSET
1,3
LINKS
MATHEMATICA
r = 5^(1/2);
f[n_] := Floor[3 n*r] - 3*Floor[n*r];
t = Table[f[n], {n, 1, 220}] (* A189463 *)
Flatten[Position[t, 0]] (* A189464 *)
Flatten[Position[t, 1]] (* A189465 *)
Flatten[Position[t, 2]] (* A190158 *)
PROG
(PARI) for(n=1, 30, print1(floor(3*n*sqrt(5)) - 3*floor(n*sqrt(5)), ", ")) \\ G. C. Greubel, Dec 28 2017
(Magma) [Floor(3*n*Sqrt(5)) - 3*Floor(n*Sqrt(5)): n in [1..30]]; // G. C. Greubel, Dec 28 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 22 2011
STATUS
approved