Euler's partition method. How does someone use it? 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:

*

*What does 'x' mean in this expression

*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.
 A: 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).
A: 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.
