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

%I #15 Sep 08 2022 08:45:56

%S 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,

%T 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,

%U 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

%N a(n) = [3*n*r] - 3*[n*r], where r=sqrt(5).

%H Ivan Panchenko, <a href="/A189463/b189463.txt">Table of n, a(n) for n = 1..10000</a>

%t r = 5^(1/2);

%t f[n_] := Floor[3 n*r] - 3*Floor[n*r];

%t t = Table[f[n], {n, 1, 220}] (* A189463 *)

%t Flatten[Position[t, 0]] (* A189464 *)

%t Flatten[Position[t, 1]] (* A189465 *)

%t Flatten[Position[t, 2]] (* A190158 *)

%o (PARI) for(n=1,30, print1(floor(3*n*sqrt(5)) - 3*floor(n*sqrt(5)), ", ")) \\ _G. C. Greubel_, Dec 28 2017

%o (Magma) [Floor(3*n*Sqrt(5)) - 3*Floor(n*Sqrt(5)): n in [1..30]]; // _G. C. Greubel_, Dec 28 2017

%Y Cf. A189464, A189465, A190158.

%K nonn

%O 1,3

%A _Clark Kimberling_, Apr 22 2011

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 September 6 04:44 EDT 2024. Contains 375703 sequences. (Running on oeis4.)