Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A140150
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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. +0
2
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; listen)
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 (ppl(AT)spl.at), Jun 06 2008

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: A120143 A031204 A085051 this_sequence A033702 A000797 A134468

Adjacent sequences: A140147 A140148 A140149 this_sequence A140151 A140152 A140153

KEYWORD

nonn

AUTHOR

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified September 5 01:44 EDT 2008. Contains 143476 sequences.


AT&T Labs Research