Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A093518
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A093518 Number of ways of representing n as exactly 2 generalized pentagonal numbers. +0
2
1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 0, 2, 1, 2, 1, 1, 2, 0, 1, 1, 0, 2, 1, 2, 0, 1, 3, 1, 1, 1, 1, 0, 1, 1, 1, 1, 2, 1, 0, 2, 2, 2, 0, 1, 1, 0, 2, 1, 0, 1, 1, 3, 1, 0, 1, 1, 2, 2, 1, 0, 1, 2, 1, 1, 0, 2, 0, 0, 1, 2, 1, 2, 1, 0, 2, 0, 3, 1, 2, 1, 0, 2, 1, 1, 1, 1, 0, 0, 1, 0, 1, 4, 1, 1, 0, 1, 2, 0, 2, 1, 1, 2, 1 (list; graph; listen)
OFFSET

0,3

EXAMPLE

a(7)=2 as we have 7+0=5+2

PROGRAM

(PARI) { v=vector(101); v[1]=0; for (i=1, 50, v[2*i]=i*(3*i-1)/2; v[2*i+1]=i*(3*i+1)/2); x=vector(500); for (a=1, 50, for (b=a, 50, if (v[a]+v[b]<500, x[v[a]+v[b]+1]++))); x }

CROSSREFS

Cf. A001318 (generalized pentagonal numbers), A002107 (expansion of Product (1-x^k)^2, k=1..inf.), A093519 (A093518(n)=0).

Sequence in context: A114171 A140345 A016024 this_sequence A128184 A025450 A139128

Adjacent sequences: A093515 A093516 A093517 this_sequence A093519 A093520 A093521

KEYWORD

nonn

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Mar 29 2004

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 6 16:04 EDT 2008. Contains 143483 sequences.


AT&T Labs Research