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!)
A120846 a(n) = 3^n + 2^n + n. 1
2, 6, 15, 38, 101, 280, 799, 2322, 6825, 20204, 60083, 179206, 535549, 1602528, 4799367, 14381690, 43112273, 129271252, 387682651, 1162785774, 3487832997, 10462450376, 31385253935, 94151567458, 282446313721, 847322163900 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(0)=2, a(1)=6, a(2)=15, a(3)=38, a(n) = 7*a(n-1)-17*a(n-2)+17*a(n-3)-6*a(n-4). [Harvey P. Dale, Oct 24 2011]
G.f.: (x^3+7*x^2-8*x+2)/((x-1)^2*(6*x^2-5*x+1)). [Harvey P. Dale, Oct 24 2011]
MAPLE
A120846:=n->3^n+2^n+n: seq(A120846(n), n=0..40); # Wesley Ivan Hurt, Jan 21 2017
MATHEMATICA
Table[3^n + 2^n + n, {n, 0, 30}] (* or *) LinearRecurrence[{7, -17, 17, -6}, {2, 6, 15, 38}, 30] (* Harvey P. Dale, Oct 24 2011 *)
PROG
(Magma) [3^n+2^n+n: n in [0..30]]; // Vincenzo Librandi, Feb 27 2013
CROSSREFS
Sequence in context: A153122 A109545 A191634 * A101522 A094969 A001674
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Aug 18 2006
EXTENSIONS
Edited by Ray Chandler, Sep 06 2006
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 May 8 19:26 EDT 2024. Contains 372341 sequences. (Running on oeis4.)