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!)
A107857 a(n) = floor[(phi + n mod 2)*a(n-1)], a(1)=1. 5

%I #25 Mar 31 2023 19:11:34

%S 1,1,2,3,7,11,28,45,117,189,494,799,2091,3383,8856,14329,37513,60697,

%T 158906,257115,673135,1089155,2851444,4613733,12078909,19544085,

%U 51167078,82790071,216747219,350704367,918155952,1485607537,3889371025

%N a(n) = floor[(phi + n mod 2)*a(n-1)], a(1)=1.

%C A switched sequence with alternating limits of the golden mean and its square. The sequence uses only one initial term. Note that Limit[a[n]/a[n-1],n->Infinity] does not exist.

%C The consecutive pairs (2,3), (7,11), (28,45) occur as pairs in columns 2 and 3 of the Wythoff array, A035513. Suppose (l(n)) and (u(n)) are the lower and upper Beatty sequences of positive irrational numbers r<s, where 1/r+1/s=1. Write l for (l(n)), lu for (l(u(n))), ulu for u(l(u(n)))), etc. Then this sequence is (u, lu, ulu, lulu, ...) = ([s], [r[s]], [s[r[s]]], ...), where [ ] denotes the floor function. For this sequence, r is the golden mean. -- _Clark Kimberling_, Nov 24 2010

%H <a href="/index/Rec">Index entries for linear recurrences with constant coefficients</a>, signature (1,4,-4,1,-1).

%F G.f. -x*(-1+3*x^2-x^3+x^4) / ( (x-1)*(x^4+4*x^2-1) ). - R. J. Mathar, Sep 11 2011

%F a(2n+2) = (1/2)*(Fib(3n+2) + 1), a(2n+1) = (1/2)*(Fib(3n+1) + 1).

%t Phi = N[(Sqrt[5] + 1)/2] F[1] = 1; F[n__] := F[n] = If[Mod[n, 2] == 0, Floor[Phi*F[n - 1]], Floor[(Phi + 1)*F[n -1]]] a = Table[F[n], {n, 1, 50}]

%t LinearRecurrence[{1,4,-4,1,-1},{1,1,2,3,7},40] (* _Harvey P. Dale_, Mar 31 2023 *)

%o (PARI) a(n)=if(n<2,1,floor((phi+n%2)*a(n-1)))

%o (Magma) [ n eq 1 select 1 else Floor(((Sqrt(5)+1)/2+(n mod 2))*Self(n-1)): n in [1..35] ];

%Y Cf. A000045, A000201, A001950, A015448, A033887.

%K nonn,easy

%O 1,3

%A _Roger L. Bagula_, Jun 12 2005

%E Edited and better name by _Ralf Stephan_, Nov 24 2010

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 April 23 13:51 EDT 2024. Contains 371914 sequences. (Running on oeis4.)