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!)
A298032 Partial sums of A298031. 2

%I #9 Jan 25 2018 08:39:50

%S 1,5,15,31,61,97,145,199,265,337,421,511,613,721,841,967,1105,1249,

%T 1405,1567,1741,1921,2113,2311,2521,2737,2965,3199,3445,3697,3961,

%U 4231,4513,4801,5101,5407,5725,6049,6385,6727,7081,7441,7813,8191,8581,8977,9385,9799,10225,10657,11101,11551

%N Partial sums of A298031.

%H Colin Barker, <a href="/A298032/b298032.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (2,0,-2,1).

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

%F From _Colin Barker_, Jan 25 2018: (Start)

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

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

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

%F (End)

%o (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

%Y Cf. A298031.

%K nonn,easy

%O 0,2

%A _N. J. A. Sloane_, Jan 21 2018

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 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)