Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A140151
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A140151 a(1)=1, a(n)=a(n-1)+n^2 if n odd, a(n)=a(n-1)+ n^5 if n is even. +0
2
1, 33, 42, 1066, 1091, 8867, 8916, 41684, 41765, 141765, 141886, 390718, 390887, 928711, 928936, 1977512, 1977801, 3867369, 3867730, 7067730, 7068171, 12221803, 12222332, 20184956, 20185581, 32066957, 32067686, 49278054, 49278895 (list; graph; listen)
OFFSET

1,2

FORMULA

a(n)=a(n-1)+{[1-(-1)^n]/2}*n^2+{[1+(-1)^n]/2}*n^5, with a(1)=1 a(n)= (-1/8)-(1/4)*(-1)^n*n+(1/8)*(-1)^n+(1/6)*n^3-(7/8)*(-1)^n*n^2+(5/24)*n^2+(1/12)*n+(1/12)*n^6+(1/4 )*(-1)^n*n^5+(1/4)*n^5+(5/8)*(-1)^n*n^4+(5/24)*n^4, with n>=1 - Paolo P. Lava (ppl(AT)spl.at), Jun 06 2008

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

MATHEMATICA

a = {}; r = 2; s = 5; 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: A034070 A045241 A046041 this_sequence A121993 A050875 A060876

Adjacent sequences: A140148 A140149 A140150 this_sequence A140152 A140153 A140154

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 December 7 23:50 EST 2009. Contains 170430 sequences.


AT&T Labs Research