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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A086955 n^2+2*n+2-(-1)^n. 3
1, 6, 9, 18, 25, 38, 49, 66, 81, 102, 121, 146, 169, 198, 225, 258, 289, 326, 361, 402, 441, 486, 529, 578, 625, 678, 729, 786, 841, 902, 961, 1026, 1089, 1158, 1225, 1298, 1369, 1446, 1521, 1602, 1681, 1766, 1849, 1938, 2025, 2118, 2209, 2306, 2401, 2502 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..10000

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

FORMULA

G.f.: (1+4*x-3*x^2+2*x^3)/((1+x)*(1-x)^3).

a(2*n) = (2*n+1)^2 = A016754(n), a(2*n+1) = 4*n^2+8*n+6 = A005899(n+1).

PROG

(MAGMA) [n^2+2*n+2-(-1)^n: n in [0..50]]; // Vincenzo Librandi, Sep 06 2011

CROSSREFS

Cf. A080335.

Sequence in context: A020183 A039280 A045091 * A078415 A023041 A118277

Adjacent sequences:  A086952 A086953 A086954 * A086956 A086957 A086958

KEYWORD

nonn,easy

AUTHOR

Paul Barry (pbarry(AT)wit.ie), Jul 25 2003

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 13:26 EST 2012. Contains 205802 sequences.