login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A084265 a(n) = (n^2 + 3*n + 1 + (-1)^n) / 2. 8
1, 2, 6, 9, 15, 20, 28, 35, 45, 54, 66, 77, 91, 104, 120, 135, 153, 170, 190, 209, 231, 252, 276, 299, 325, 350, 378, 405, 435, 464, 496, 527, 561, 594, 630, 665, 703, 740, 780, 819, 861, 902, 946, 989, 1035, 1080, 1128, 1175, 1225, 1274, 1326, 1377, 1431, 1484 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

Previous name was: Modified triangular numbers.

Binomial transform is A084266.

Partial sums give A064843. - N. J. A. Sloane, Jul 20 2008

Starting with "1" = triangle A171608 * the odd integers, (1, 3, 5, ...). - Gary W. Adamson, Dec 12 2009

LINKS

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

Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).

FORMULA

a(n) = A000217(n)+A059841(n)+n.

E.g.f.: cosh(x) + exp(x)*(2x+x^2/2).

a(n) = (n^2+3*n+1)/2+(-1)^n/2.

G.f.: ( -1-2*x^2+x^3 ) / ( (1+x)*(x-1)^3 ). - R. J. Mathar, Nov 26 2012

From Wesley Ivan Hurt, Mar 21 2015: (Start)

a(n) = 2*a(n-1)-2*a(n-3)+a(n-4).

a(n) = Sum_{i=0..n+1} i-(-1)^i. (End)

MAPLE

A084265:=n->(n^2+3*n+1)/2+(-1)^n/2: seq(A084265(n), n=0..100); # Wesley Ivan Hurt, Mar 21 2015

MATHEMATICA

CoefficientList[Series[(-1 - 2 x^2 + x^3) / ((1 + x) (x - 1)^3), {x, 0, 60}], x] (* Vincenzo Librandi, Aug 15 2013 *)

PROG

(MAGMA) [(n^2+3*n+1)/2+(-1)^n/2: n in [0..60]]; // Vincenzo Librandi, Aug 15 2013

(PARI) vector(100, n, (n^2+n-1-(-1)^n)/2) \\ Derek Orr, Mar 22 2015

CROSSREFS

Cf. A084263.

Cf. A171608. - Gary W. Adamson, Dec 12 2009

Sequence in context: A325761 A176039 A260699 * A084140 A294864 A103139

Adjacent sequences:  A084262 A084263 A084264 * A084266 A084267 A084268

KEYWORD

easy,nonn

AUTHOR

Paul Barry, May 31 2003

EXTENSIONS

New name from Joerg Arndt, Aug 15 2013

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 September 25 00:02 EDT 2020. Contains 337333 sequences. (Running on oeis4.)