Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A086674
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A086674 Sum of signed indices from Euler's Pentagonal Theorem (see A000041). +0
1
0, 1, 3, 5, 7, 8, 9, 9, 9, 9, 9, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 27, 28, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 32, 33, 34, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55 (list; graph; listen)
OFFSET

1,3

COMMENT

Is the sequence increasing? (checked to n=5000).

FORMULA

a(n)=sum{k_i is a generalized pentagonal, (-1)^(floor((i+1)/2))*(n-k)}

EXAMPLE

a(10) is given via the expansion part(10)=part(9)+part(8)-part(5)-part(3), so in this sequence a(10)=9+8-5-3=9.

PROGRAM

(PARI) { gp=vecsort(vector(20, i, x=10-i; x*(3*x-1)/2)); for (n=1, 50, s=0; i=1; while (n-gp[i+1]>0, s-=(-1)^(floor((i+1)/2))*(n-gp[i+1]); i++); print1(", "s)) }

CROSSREFS

Cf. A001318 (GP's), A000041 (partition function).

Sequence in context: A101496 A008508 A036593 this_sequence A137203 A102890 A008520

Adjacent sequences: A086671 A086672 A086673 this_sequence A086675 A086676 A086677

KEYWORD

nonn

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Sep 12 2003

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 July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research