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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A155596 5^n-2^n+1^n 30
1, 4, 22, 118, 610, 3094, 15562, 77998, 390370, 1952614, 9764602, 48826078, 244136530, 1220694934, 6103499242, 30517545358, 152587825090, 762939322054, 3814697003482, 19073485803838, 95367430592050, 476837156105974 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Table of n, a(n) for n=0..21.

Index entries for linear recurrences with constant coefficients, signature (8,-17,10).

FORMULA

G.f.: 1/(1-5*x)-1/(1-2*x)+1/(1-x). E.g.f.: e^(5*x)-e^(2*x)+e^x.

a(n)=7*a(n-1)-10*a(n-2)+4 with a(0)=1, a(1)=4 - Vincenzo Librandi, Jul 21 2010

MATHEMATICA

Table[5^n-2^n+1, {n, 0, 30}] (* or *) LinearRecurrence[{8, -17, 10}, {1, 4, 22}, 30] (* Harvey P. Dale, Sep 11 2019 *)

PROG

(PARI) a(n)=5^n-2^n+1 \\ Charles R Greathouse IV, Sep 24 2015

CROSSREFS

Cf. A074501, A020515, A155588, A155590, A155592, A155593, A155594.

Sequence in context: A305554 A291183 A245087 * A244900 A261193 A025569

Adjacent sequences:  A155593 A155594 A155595 * A155597 A155598 A155599

KEYWORD

nonn,easy

AUTHOR

Mohammad K. Azarian, Jan 25 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 12 19:41 EST 2019. Contains 329078 sequences. (Running on oeis4.)