I have an infinite series in the form $A(x) =\frac{1}{1-x}$ which expanded is $$A(x) = 1 + x + x^2 + x^3...$$
I need to find the coefficient of the term $x^K$ in $A(x)^N$ where $N$ can be a large number $2^{32}$. I saw a solution over there using induction, but I didn't understand it. Please suggest a different solution or help me to understand the solution that uses induction.
For $i=0,1,2....$ put $\; C_{1,i}=1$.
Assume the following recurrence hypothesis
$$(A(x))^n=\sum_{i\in N}C_{n,i}x^i.$$
$$(A(x))^{n+1} =(A(x))^n\sum_{j\in N}x^j$$
$$=\sum_{i,j \in N}C_{n,i}C_{1,j}x^{i+j}$$
$$=\sum_{i\in N}(\sum_{j=0}^i C_{n,j})x^i$$
thus, we get the following recursive formula
$$C_{n+1,N}=\sum_{j=0}^NC_{n,j}$$
with $C_{1,j}=1$ for $j=0,1,2...$.
For example, take $n=4,N=4$
$C_{2,0}=1,C_{2,1}=2,C_{2,2}=3,C_{2,3}=4,C_{2,4}=5$
$C_{3,0}=1,C_{3,1}=3,C_{3,2}=6,C_{3,3}=10,C_{3,4}=15$
$$C_{4,4}=1+3+6+10+15=35.$$