login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A048745 Partial sums of A048654. 2
1, 5, 14, 36, 89, 217, 526, 1272, 3073, 7421, 17918, 43260, 104441, 252145, 608734, 1469616, 3547969, 8565557, 20679086, 49923732, 120526553, 290976841, 702480238, 1695937320, 4094354881, 9884647085, 23863649054, 57611945196, 139087539449, 335787024097 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

LINKS

Index to sequences with linear recurrences with constant coefficients, signature (3,-1,-1).

FORMULA

a(n)=2*a(n-1)+a(n-2)+3; a(0)=1, a(1)=5.

a(n)=[ {(4+(5/2)*sqrt(2))(1+sqrt(2))^n - (4-(5/2)*sqrt(2))(1-sqrt(2))^n}/ 2*sqrt(2) ]-3/2.

G.f.: (1+2*x)/(1-3*x+x^2+x^3). - Paul D. Hanna (pauldhanna(AT)juno.com), Feb 22 2005

a(n)=3*a(n-1)-a(n-2)-a(n-3), n>2 ; a(0)=1, a(1)=5, a(2)=14 . [From Philippe DELEHAM (kolotoko(AT)wanadoo.fr), Dec 16 2008]

MATHEMATICA

t={1, 5}; Do[AppendTo[t, t[[-2]] + 2*t[[-1]] + 3], {n, 40}]; t (* From Vladimir Joseph Stephan Orlovsky, Jan 27 2012 *)

PROG

(PARI) a(n)=polcoeff((1+2*x)/(1-3*x+x^2+x^3)+x*O(x^n), n) (Hanna)

CROSSREFS

Cf. A005409, A098790.

Sequence in context: A187198 A097507 A052951 * A127980 A054486 A072130

Adjacent sequences:  A048742 A048743 A048744 * A048746 A048747 A048748

KEYWORD

easy,nonn

AUTHOR

Barry E. Williams

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 23:34 EST 2012. Contains 205860 sequences.