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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140150 a(1)=1, a(n)=a(n-1)+n^2 if n odd, a(n)=a(n-1)+ n^4 if n is even. 1
1, 17, 26, 282, 307, 1603, 1652, 5748, 5829, 15829, 15950, 36686, 36855, 75271, 75496, 141032, 141321, 246297, 246658, 406658, 407099, 641355, 641884, 973660, 974285, 1431261, 1431990, 2046646, 2047487, 2857487, 2858448, 3907024, 3908113 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

FORMULA

a(n)=a(n-1)+{[1-(-1)^n]/2}*n^2+{[1+(-1)^n]/2}*n^4, with a(1)=1 a(n)= -(1/2)*(-1)^n*n+(1/2)*(-1)^n*n^3+(1/3)*n^3-(1/4)*(-1)^n*n^2+(1/4)*n^2+(1/15)*n+(1/10)*n^5+(1/4) *(-1)^n*n^4+(1/4)*n^4, with n>=1 - Paolo P. Lava (paoloplava(AT)gmail.com), Jun 06 2008

G.f.: x*(1+16*x+4*x^2+176*x^3-10*x^4+176*x^5+4*x^6+16*x^7+x^8)/((1+x)^5*(x-1)^6). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Feb 22 2009]

MATHEMATICA

a = {}; r = 2; s = 4; Do[k = 0; Do[k = k + (Sin[Pi m/2]^2) m^r + (Cos[Pi m/2]^2) m^s, {m, 1, n}]; AppendTo[a, k], {n, 1, 100}]; a (*Artur Jasinski*)

CROSSREFS

Cf. A000027, A000217, A000330, A000537, A000538, A000539, A136047, A140113.

Sequence in context: A085051 A171954 A154277 * A166658 A033702 A000797

Adjacent sequences:  A140147 A140148 A140149 * A140151 A140152 A140153

KEYWORD

nonn

AUTHOR

Jasinski Artur (grafix(AT)csl.pl), May 12 2008

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 16 14:37 EST 2012. Contains 205930 sequences.