Question #272403

Describe at least one way to generate all the partitions of a positive integer n.


1
Expert's answer
2021-11-30T13:35:56-0500

Partition of an integer is the representation of the positive integer n as a collection of positive integers.

Denote w(n) to be the number of ways of representing a positive integer n without considering the order of the integer. For a given integer n the number of partitions w(n) can be determined in a number of ways. Consider the given expression:

 w(n)=1nk=1na(k)m(nk)w(n)=\frac{1}{n} \sum_{k=1}^{n} a(k) m(n-k)

which includes the addition of divisors of integer n and taking w(0)=1.0

a(k) denotes the addition of divisors of kk \cdot Suppose (w1r1)(w2r2)(wtr)\left(w 1^{r 1}\right)\left(w 2^{r 2}\right) \ldots\left(w t^{r}\right) are the prime factorization of k, the addition of divisors of k is given by the expression:

 a(k)=j=1twjij+11wj1\mathrm{a}(k)=\prod_{j=1}^{t} \frac{w j^{i j+1}-1}{w j-1}


The sequence w(n) can be computed by using the given formula recursively:

 w(n)=(1)(k1)w(nk(3k±1)2)\mathrm{w}(n)=\sum(-1)^{(k-1)} \mathrm{w}\left(n-k \frac{(3 k \pm 1)}{2}\right)


where, addition is calculated over all k in a way that k(3k±1)2\frac{k(3 k \pm 1)}{2} lies between the values 1 ton.

Euler's generating function given by:

1(1x)(1x2)(1x3)=1+w(1)x+w(2)x2+w(3)x3+\frac{1}{(1-x)\left(1-x^{2}\right)\left(1-x^{3}\right) \ldots}=1+w(1) x+w(2) x^{2}+w(3) x^{3}+\ldots  

can be induced to cover the disjoint sets into any (and all possible) sets of integers. For each preferable summand s\mathrm{s} , in denominator arrange a multiple of (1xs)\left(1-x^{s}\right) . For example, the generating function for the partitions of n into primes is

 1(1x2)(1x3)(1x5)(1x7)(1x11)=1+0x+1x2+1x3+1x4+2x5+2x6+3x7+\frac{1}{\left(1-x^{2}\right)\left(1-x^{3}\right)\left(1-x^{5}\right)\left(1-x^{7}\right)\left(1-x^{11}\right) \ldots}=1+0 x+1 x^{2}+1 x^{3}+1 x^{4}+2 x^{5}+2 x^{6}+3 x^{7}+\ldots


 


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS