1

I came across partitions recently and am not very much informed about it but I have a question regarding Euler's method for this. I came to know about this formula from a YouTube video so, it may not be the full equation.

Symbols: P(n) -> Partition of n
$\pi$ -> Product
n -> Any number

$\sum_{}^\infty (P(n)*x^n) = \prod\limits_{k=1}^\infty (\frac{1}{1-x^k})$

I can't understand:

  1. What does 'x' mean in this expression
  2. How can someone calculate partition with this.

The video I learnt this from is this.



Note: I am not informed regarding this subject so, I may have the question all wrong. I only want to know how this works. Today, I don't think this formula is used today after Ramanujan's work. I just want to know how the people before used it.

  • This is an example of a generating function (see also the partition function's page. – angryavian Aug 09 '21 at 02:50
  • the generating function itself not would be that practical in finding $p(n)$ values; one can expand $\prod_{k=1}^\infty (1-x^k)^{-1} = (1+x+x^2+\dots)(1+x^2 + x^4+\dots) (1+x^3+x^6+\dots)\dots$, but doing it is essentially same as finding each of the partitions of $n$.

    However, with the theory of partition numbers and $q$-series, you can find some good recurrence formula on partition numbers, like $p(n) = \sum_{0<\omega_j \le n} (-1)^{j+1} p(n-\omega_j)$ where $\omega_j = j(3j+1)/2$ for $j\in \mathbb{Z}$, which helps to find the partition numbers.

    – dust05 Aug 09 '21 at 03:41
  • You can refer to the textbook "Number Theory in the Spirit of Ramanujan" by B. Berdnt. – dust05 Aug 09 '21 at 03:43
  • You may have a look at this post. – Paramanand Singh Aug 10 '21 at 19:56

2 Answers2

1

This example supplements MAAvL's answer and is an expansion of dust05's comment. The following is a bit pedantic, with including exponents 1 and writing $(1+x^2+x^{2+2}+\cdots)$ rather than $(1+x^2+x^4+\cdots)$, for example, but the idea is to make the connection to partitions very concrete.

\begin{align*} &\sum_{n \ge 0} P(n) x^n = \prod_{k \ge 1} \frac{1}{1-x^k} \\ & = \left(\frac{1}{1-x}\right) \left(\frac{1}{1-x^2}\right) \left(\frac{1}{1-x^3}\right) \left(\frac{1}{1-x^4}\right) \cdots \\ & = (1+x^1+x^{1+1}+\cdots)(1+x^2+x^{2+2}+\cdots)(1+x^3+x^{3+3}+\cdots)(1+x^4+x^{4+4}+\cdots)\cdots \\ & = 1 + x^1 + (x^2 + x^{1+1}) + (x^3 + x^2 x^1 + x^{1+1+1}) + (x^4 + x^3 x^1 + x^{2+2} + x^2 x^{1+1} + x^{1+1+1+1})\cdots\\ & = 1 + x^1 + (x^2 + x^{1+1}) + (x^3 + x^{2+1} + x^{1+1+1}) + (x^4 + x^{3+1} + x^{2+2} + x^{2+1+1} + x^{1+1+1+1})\cdots\\ & = 1 + x + 2x^2 + 3x^3 + 5x^4 + \cdots \end{align*}

Also, this generating function for $P(n)$ is used all the time in contemporary research on integer partitions (where it is often written using the $q$-Pochhammer symbol as $1/(q;q)_\infty$ or just $1/(q)_\infty$). As per the comments and links, though, there are other ways to compute $P(n)$ exactly (Euler's recurrence using the pentagonal number theorem) and asymptotically (the Hardy-Ramanujan-Rademacher formula).

0

The $x$ is just a placeholder (an indeterminate symbol) so that any power $x^n$ can serve as point of attachment of a separate coefficient $c_n$ to form an infinite object (a formal power series) that encompasses the information about all the $c_n$ at once. In your expression $x^n$ is used to attached the number $P(n)\in\Bbb N$ of partitions of $n$ to.

In calculations one needs to restrict to a finite initial portion of the sequence for practical reasons. They can be stored in an array that is indexed starting from $0$ (for the coefficient of $x^0$). One of the most basic operations used in this context is division by a binomial $1-x^k$ with $k>0$; this turns out to be implemented easily as a modification of such an array, by a loop over all indices $i$ in increasing order (except for the last few where the operation would overflow the finite array), on iteration $i$ adding $c_i$ to $c_{i+k}$ (note that if $i\geq k$, then $c_i$ has at this point already been changed in an earlier iteration). The infinite product would in practice be truncated to a finite product (since as soon as $k$ exceeds the size of the array there is nothing that can be done in the iteration), in and outer loop on $k$ that encloses the mentioned (inner) loop on $i$. In your example the outer loop would be run for $k=1,2,3,4,\ldots$, but for other problems a different set of values for $k$ might be employed; see for instance how it is done in this answer to a different question. Note by the way that while the order for the outer loop is not essential (multiplication of power series is commutative), the order in the inner loop must be respected to implement division by $1-x^k$ (in the opposite order it would perform multiplication by $1+x^k$).

This gives a fairly fast way to compute numbers of partitions (if your computer can handle the large integers that fairly soon are needed), but it is not the best: the best known way (as far as I am aware) is to simplify the product of the denominators $1-x^k$ first, using Euler's pentagonal theorem. But that is a matter for a different question.