Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A024786
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A024786 Number of 2's in all partitions of n. +0
18
0, 1, 1, 3, 4, 8, 11, 19, 26, 41, 56, 83, 112, 160, 213, 295, 389, 526, 686, 911, 1176, 1538, 1968, 2540, 3223, 4115, 5181, 6551, 8191, 10269, 12756, 15873, 19598, 24222, 29741, 36532, 44624, 54509, 66261, 80524, 97446, 117862, 142029, 171036, 205290, 246211 (list; graph; listen)
OFFSET

1,4

COMMENT

Also number of partitions of n-1 with a distinguished partition different from all the others.

In general the number of times that j appears in the partitions of n equals Sum_{k<n, k = n (mod j)} P(k). In particular this gives a formula for a(n), A024787, ..., A024794, for j = 2,...,10; it generalizes the formula given for A000070 for j=1. - Jose Luis Arregui (arregui(AT)posta.unizar.es), Apr 05 2002

REFERENCES

J. Riordan, Combinatorial Identities, Wiley, 1968, p. 184.

FORMULA

a(n) = sum{k=1 to floor(n/2)} A000041(n-2k).

a(n) = Sum_{k<n, k = n (mod 2)} P(k), P(k) =number of partitions of k as in A000041, P(0) = 1. - Jose Luis Arregui (arregui(AT)posta.unizar.es), Apr 05 2002

G.f.: x/((1-x)*(1-x^2)^2))*product(1/(1-x^j), j=3..infty) from Riordan reference second term, last eq.

MATHEMATICA

<< DiscreteMath`Combinatorica`; Table[ Count[ Flatten[ Partitions[n]], 2], {n, 1, 50} ]

CROSSREFS

Cf. A066633, A024787, A024788, A024789, A024790, A024791, A024792, A024793, A024794.

Column 2 of A060244.

First differences of A000097.

Adjacent sequences: A024783 A024784 A024785 this_sequence A024787 A024788 A024789

Sequence in context: A099108 A001994 A084421 this_sequence A097497 A006167 A137504

KEYWORD

nonn

AUTHOR

Clark Kimberling (ck6(AT)evansville.edu)

EXTENSIONS

Formula and comment from Christian G. Bower (bowerc(AT)usa.net), Jun 22 2000

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 May 16 23:01 EDT 2008. Contains 139884 sequences.


AT&T Labs Research