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!)
A064324 a(n) = a(n-1) + floor(a(n-2)/2) with a(0)=1, a(1)=2. 6

%I #23 Jul 28 2023 15:30:35

%S 1,2,2,3,4,5,7,9,12,16,22,30,41,56,76,104,142,194,265,362,494,675,922,

%T 1259,1720,2349,3209,4383,5987,8178,11171,15260,20845,28475,38897,

%U 53134,72582,99149,135440,185014,252734,345241,471608,644228,880032

%N a(n) = a(n-1) + floor(a(n-2)/2) with a(0)=1, a(1)=2.

%C a(n)/a(n-1) approaches (1+sqrt(3))/2 = 1.3660254... = A332133 for large n.

%H Harry J. Smith, <a href="/A064324/b064324.txt">Table of n, a(n) for n = 0..400</a>

%F a(n) = A064323(n) + 1.

%e a(5) = a(4)+floor(a(3)/2) = 4+floor(3/2) = 5.

%t RecurrenceTable[{a[n] == a[n-1] + Floor[a[n-2]/2], a[0] == 1, a[1] == 2}, a, {n, 0, 50}] (* _G. C. Greubel_, May 04 2019 *)

%t nxt[{a_,b_}]:={b,Floor[a/2]+b}; NestList[nxt,{1,2},50][[;;,1]] (* _Harvey P. Dale_, Jul 28 2023 *)

%o (PARI) { for (n=0, 400, if (n>1, a=a1 + a2\2; a2=a1; a1=a, if (n, a=a1=2, a=a2=1)); write("b064324.txt", n, " ", a) ) }; \\ _Harry J. Smith_, Sep 11 2009

%o (Magma) [n le 2 select n else Self(n-1)+Floor(Self(n-2)/2): n in [1..45]]; // _Bruno Berselli_, Apr 20 2012

%Y Cf. A064323, A332133, A182229, A182230.

%K nonn

%O 0,2

%A _Henry Bottomley_, Sep 11 2001

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 16 12:52 EDT 2024. Contains 371711 sequences. (Running on oeis4.)