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!)
A121968 a(n) = 2*a(n-1) - a(n-2) + n + 1. 2
1, 2, 6, 14, 27, 46, 72, 106, 149, 202, 266, 342, 431, 534, 652, 786, 937, 1106, 1294, 1502, 1731, 1982, 2256, 2554, 2877, 3226, 3602, 4006, 4439, 4902, 5396, 5922, 6481, 7074, 7702, 8366, 9067, 9806, 10584, 11402, 12261, 13162, 14106, 15094, 16127 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Equals binomial transform of [1, 1, 3, 1, 0, 0, 0, ...]. - Gary W. Adamson, Aug 25 2010
LINKS
FORMULA
a(n) = (6 + n(-1 + n(6 + n)))/6 = C(n+1, 3) + n^2 + 1 = C(n+2, 3) + C(n, 2) + 1.
G.f.: (1 - 2*x + 4*x^2 - 2*x^3)/(1 - x)^4. - Robert G. Wilson v, Sep 11 2006
MATHEMATICA
a[n_] := (6 + n(-1 + n(6 + n)))/6; Table[a[n], {n, 0, 45}] (* or *)
a[0] = 1; a[1] = 2; a[n_] := a[n] = 2a[n - 1] - a[n - 2] + n + 1; Table[ a[n], {n, 0, 45}] (* or *)
CoefficientList[ Series[(1 - 2x + 4x^2 - 2x^3)/(x - 1)^4, {x, 0, 45}], x] (* Robert G. Wilson v, Sep 11 2006 *)
PROG
(PARI) x='x+O('x^50); Vec((1-2*x+4*x^2-2*x^3)/(1-x)^4) \\ G. C. Greubel, Sep 13 2017
CROSSREFS
Cf. cake numbers A000125.
Sequence in context: A182155 A101586 A178080 * A305329 A161212 A256058
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Sep 04 2006
EXTENSIONS
Edited and extended by Robert G. Wilson v, Sep 11 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 April 16 18:51 EDT 2024. Contains 371750 sequences. (Running on oeis4.)