login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A137581 A156311 A270740 * A287451 A113414 A286653
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 22 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 7 11:22 EDT 2024. Contains 374069 sequences. (Running on oeis4.)