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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A298032 Partial sums of A298031. 2
1, 5, 15, 31, 61, 97, 145, 199, 265, 337, 421, 511, 613, 721, 841, 967, 1105, 1249, 1405, 1567, 1741, 1921, 2113, 2311, 2521, 2737, 2965, 3199, 3445, 3697, 3961, 4231, 4513, 4801, 5101, 5407, 5725, 6049, 6385, 6727, 7081, 7441, 7813, 8191, 8581, 8977, 9385, 9799, 10225, 10657, 11101, 11551 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Colin Barker, Table of n, a(n) for n = 0..1000

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

FORMULA

G.f.: -(2*x^6 - 8*x^4 - 3*x^3 - 5*x^2 - 3*x - 1) / ((1 - x)^2*(1 - x^2)).

From Colin Barker, Jan 25 2018: (Start)

a(n) = (9*n^2 - 6*n + 2) / 2 for n>2 and even.

a(n) = (9*n^2 - 6*n - 1) / 2 for n>2 and odd.

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

(End)

PROG

(PARI) Vec((1 + 3*x + 5*x^2 + 3*x^3 + 8*x^4 - 2*x^6) / ((1 - x)^3*(1 + x)) + O(x^50)) \\ Colin Barker, Jan 25 2018

CROSSREFS

Cf. A298031.

Sequence in context: A056108 A055831 A037984 * A073361 A155013 A134887

Adjacent sequences:  A298029 A298030 A298031 * A298033 A298034 A298035

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane, Jan 21 2018

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 March 21 07:23 EDT 2019. Contains 321367 sequences. (Running on oeis4.)