Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A140145
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A140145 a(1)=1, a(n)=a(n-1)+n^1 if n odd, a(n)=a(n-1)+ n^3 if n is even. +0
3
1, 9, 12, 76, 81, 297, 304, 816, 825, 1825, 1836, 3564, 3577, 6321, 6336, 10432, 10449, 16281, 16300, 24300, 24321, 34969, 34992, 48816, 48841, 66417, 66444, 88396, 88425, 115425, 115456, 148224, 148257, 187561, 187596, 234252, 234289, 289161 (list; graph; listen)
OFFSET

1,2

FORMULA

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

MATHEMATICA

a = {}; r = 1; s = 3; 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: A120991 A072308 A045769 this_sequence A038302 A050236 A070607

Adjacent sequences: A140142 A140143 A140144 this_sequence A140146 A140147 A140148

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 3 14:12 EST 2008. Contains 151279 sequences.


AT&T Labs Research