login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A129370 a(n)=n^2-(n-1)^2*(1-(-1)^n)/8. 12
0, 1, 4, 8, 16, 21, 36, 40, 64, 65, 100, 96, 144, 133, 196, 176, 256, 225, 324, 280, 400, 341, 484, 408, 576, 481, 676, 560, 784, 645, 900, 736, 1024, 833, 1156, 936, 1296, 1045, 1444, 1160, 1600, 1281, 1764, 1408 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Partial sums are A129371.

LINKS

Table of n, a(n) for n=0..43.

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

FORMULA

G.f.: x(1+4x+5x^2+4x^3)/(1-x^2)^3; a(n)=((7n^2+2n-1)+(n-1)^2(-1)^n)/8;

MATHEMATICA

Table[n^2-(n-1)^2 (1-(-1)^n)/8, {n, 0, 50}] (* Harvey P. Dale, Oct 22 2011 *)

PROG

(PARI) a(n)=n^2-(n-1)^2*(1-(-1)^n)/8 \\ Charles R Greathouse IV, Sep 28 2015

CROSSREFS

Cf. A016742 (bisection), A000567 (bisection).

Sequence in context: A312807 A312808 A249486 * A344485 A212009 A312809

Adjacent sequences: A129367 A129368 A129369 * A129371 A129372 A129373

KEYWORD

easy,nonn

AUTHOR

Paul Barry, Apr 11 2007

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 December 5 19:04 EST 2022. Contains 358588 sequences. (Running on oeis4.)