login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A155639 a(n) = 6^n-5^n+1^n. 21
1, 2, 12, 92, 672, 4652, 31032, 201812, 1288992, 8124572, 50700552, 313968932, 1932641712, 11839990892, 72260648472, 439667406452, 2668522016832, 16163719991612, 97745259402792, 590286253682372, 3560791008422352 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
G.f.: 1/(1-6*x)-1/(1-5*x)+1/(1-x).
E.g.f.: e^(6*x)-e^(5*x)+e^x.
a(n) = 11*a(n-1)-30*a(n-2)+20 with a(0)=1, a(1)=2. - Vincenzo Librandi, Jul 21 2010
MAPLE
A155639:=n->6^n - 5^n + 1: seq(A155639(n), n=0..20); # Wesley Ivan Hurt, Nov 20 2014
MATHEMATICA
Table[6^n - 5^n + 1, {n, 0, 20}] (* Wesley Ivan Hurt, Nov 20 2014 *)
LinearRecurrence[{12, -41, 30}, {1, 2, 12}, 30] (* Harvey P. Dale, Aug 23 2016 *)
PROG
(Magma) [6^n - 5^n + 1 : n in [0..20]]; // Wesley Ivan Hurt, Nov 20 2014
(PARI) a(n)=6^n-5^n+1 \\ Charles R Greathouse IV, Sep 24 2015
CROSSREFS
Sequence in context: A250130 A225573 A354233 * A333473 A103882 A304979
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 30 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 10 04:38 EST 2023. Contains 367699 sequences. (Running on oeis4.)