Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117142
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117142 Number of partitions of n in which any two parts differ by at most 2. +0
3
1, 2, 3, 5, 6, 9, 10, 14, 15, 20, 21, 27, 28, 35, 36, 44, 45, 54, 55, 65, 66, 77, 78, 90, 91, 104, 105, 119, 120, 135, 136, 152, 153, 170, 171, 189, 190, 209, 210, 230, 231, 252, 253, 275, 276, 299, 300, 324, 325, 350, 351, 377, 378, 405, 406, 434, 435, 464, 465 (list; graph; listen)
OFFSET

1,2

FORMULA

G:=sum(x^k/[(1-x^k)(1-x^(k+1))(1-x^(k+2))], k=1..infinity). More generally, the g.f. of the number of partitions in which any two parts differ by at most b is sum(x^k/product(1-x^j, j=k..k+b), k=1..infinity).

EXAMPLE

a(6)=9 because we have [6],[4,2],[3,3],[3,2,1],[3,1,1,1],[2,2,2],[2,2,1,1],[2,1,1,1,1], and [1,1,1,1,1,1] ([5,1] and [4,1,1] do not qualify).

MAPLE

g:=sum(x^k/(1-x^k)/(1-x^(k+1))/(1-x^(k+2)), k=1..75): gser:=series(g, x=0, 70): seq(coeff(gser, x^n), n=1..65); with(combinat): for n from 1 to 7 do P:=partition(n): A:={}: for j from 1 to nops(P) do if P[j][nops(P[j])]-P[j][1]<3 then A:=A union {P[j]} else A:=A fi od: print(A); od: # this program yields the partitions

CROSSREFS

Cf. A117143.

Sequence in context: A029451 A029455 A092213 this_sequence A076061 A025523 A128689

Adjacent sequences: A117139 A117140 A117141 this_sequence A117143 A117144 A117145

KEYWORD

nonn

AUTHOR

Emeric Deutsch (deutsch(AT)duke.poly.edu), Feb 27 2006

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 November 18 20:14 EST 2008. Contains 147244 sequences.


AT&T Labs Research