Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A052952
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A052952 a(n) = F(n+2)-(1-(-1)^n)/2. +0
19
1, 1, 3, 4, 8, 12, 21, 33, 55, 88, 144, 232, 377, 609, 987, 1596, 2584, 4180, 6765, 10945, 17711, 28656, 46368, 75024, 121393, 196417, 317811, 514228, 832040, 1346268, 2178309, 3524577, 5702887, 9227464, 14930352, 24157816, 39088169 (list; graph; listen)
OFFSET

0,3

LINKS

INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 1023

FORMULA

G.f.: 1/(-1+x+x^2)/(-1+x^2)

Recurrence: a(0)=1, a(1)=1, a(2)=3, a(n) = 2*a(n-2) + a(n-3) + 1.

Sum(1/5*(3+_alpha)*_alpha^(-1-n), _alpha=RootOf(-1+_Z+_Z^2))+Sum(-1/2*_alpha^(-1-n), _alpha=RootOf(-1+_Z^2))

a(2*k)=sum(F(2*j+1), j=0..k)= F(2*(k+1)), k >= 0; a(2*k-1)=sum(F(2*j), j=0..k)= F(2*k+1)-1, k >= 1; F(n)=A000045(n) (Fibonacci numbers).

a(n) = a(n-1) + a(n-2) + (1+(-1)^n)/2. a(2n)=F(2n+2), a(2n+1)=F(2n+3)-1.

a(n)=sum{k=0..floor(n/2), binomial(n-k+1, k)} - Paul Barry (pbarry(AT)wit.ie), Oct 23 2004

a(n) = floor(phi^(n+2) / sqrt(5)), where phi is the golden ratio: phi = (1+sqrt(5))/2. - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Apr 19 2005

a(n) =fibonacci(n-1)+a(n-2), a(2)=1. - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Mar 17 2008

Another recurrence (with a different offset) is given in the Maple code.

MAPLE

spec := [S, {S=Prod(Sequence(Union(Prod(Z, Z), Z)), Sequence(Prod(Z, Z)))}, unlabeled ]: seq(combstruct[count ](spec, size=n), n=0..20);

with (combinat):a[2]:=1:for n from 2 to 50 do a[n]:=fibonacci(n-1)+a[n-2] od: seq(a[n-1], n=3..39); - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Mar 17 2008

f:=proc(n) option remember; local t1; if n <= 2 then RETURN(1); fi: if n mod 2 = 1 then t1:=1 else t1:=0; fi: f(n-1)+f(n-2)+t1; end; [seq(f(n), n=1..100)]; - njas, May 25 2008

PROGRAM

(PARI) a(n)=if(n<0, 0, fibonacci(n+2)-n%2)

CROSSREFS

a(n)= A054450(n+1, 1) (second column of triangle). Cf. A062114.

Cf. A074331.

Essentially the same as A074331.

Sequence in context: A064188 A088953 A025034 this_sequence A074331 A033955 A049720

Adjacent sequences: A052949 A052950 A052951 this_sequence A052953 A052954 A052955

KEYWORD

easy,nonn

AUTHOR

encyclopedia(AT)pommard.inria.fr, Jan 25 2000

EXTENSIONS

Additional formulae and more terms from Wolfdieter Lang (wolfdieter.lang(AT)physik.uni-karlsruhe.de), May 02 2000. Better description from Olivier Gerard (ogerard(AT)ext.jussieu.fr), Jun 05 2001.

More terms from James A. Sellers (sellersj(AT)math.psu.edu), Jun 06 2000

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified September 6 16:04 EDT 2008. Contains 143483 sequences.


AT&T Labs Research