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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140155 a(1)=1, a(n)=a(n-1)+n^3 if n odd, a(n)=a(n-1)+ n^4 if n is even. 1
1, 17, 44, 300, 425, 1721, 2064, 6160, 6889, 16889, 18220, 38956, 41153, 79569, 82944, 148480, 153393, 258369, 265228, 425228, 434489, 668745, 680912, 1012688, 1028313, 1485289, 1504972, 2119628, 2144017, 2954017, 2983808, 4032384 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

FORMULA

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

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

MATHEMATICA

a = {}; r = 3; 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: A112885 A093191 A033703 * A032698 A120099 A045570

Adjacent sequences:  A140152 A140153 A140154 * A140156 A140157 A140158

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 14 06:48 EST 2012. Contains 205577 sequences.