My question is whether induction (and backward induction) can be applied as $n \rightarrow \infty$.
To explain what I mean, I will show inductively that $a_1=\ldots=a_{n}=0$ is the only solution to
$$
0 = a_1x + (a_1+a_{2})x^{2}+ \ldots+(a_1+\ldots+a_{n})x^{n}, \qquad \forall \ x\in (0,1]
$$
For $x$ small enough, we must have that $a_1=0$. Assume that $a_1=\ldots=a_{i-1}=0$, then
$$
0 = a_ix^i + (a_{i}+a_{i+1})x^{i+1}+ \ldots+(a_i+\ldots+a_{n})x^{n}, \qquad \forall \ x\in (0,1]
$$
so that for $x$ small enough we must have $a_i=0$. By induction, $a_0=\ldots=a_n=0$.
My question is if and where does this solution break down as $n \rightarrow \infty$. Specifically does the same inductive reasoning work to show that $0=a_1=a_2=\ldots$ when $$ 0 = \sum_{i=1}^\infty x^i \left(\sum_{j=1}^{i} a_{j} \right), \qquad \forall \ x\in (0,1] $$
Also what about backward induction. For example if $$ 0 = \sum_{i=1}^n x^i \left(\sum_{j=i}^{n} a_{j} \right), \qquad \forall \ x\in \mathbb{R} $$ then by backward induction I can show that $0=a_1=\ldots=a_n$ (i.e., for $x$ large enough, we must have that $a_n=0$. Now assume that $a_n=\ldots=a_{i+1}=0$ then for $x$ large enough we must have $a_i=0$). Does the same reasoning apply to show that $0=a_1=\ldots$ when $$ 0 = \sum_{i=1}^{\infty} x^i \left(\sum_{j=i}^{\infty} a_{j} \right), \qquad \forall x\in \mathbb{R}? $$
Edit: I have added a bounty because I would like to get more intuition for why the induction argument fails. Specifically,
Assuming convergence of the function, say the function is analytic, can you provide an example where the induction argument holds for finite $n$ and then falls apart when $n \rightarrow \infty$?
What is the intuition that the argument breaks down?
The proof that if an analytic function equals zero in an open ball implies that the function is exactly zero uses the maximum modulus principle (https://en.wikipedia.org/wiki/Maximum_modulus_principle) rather than first using a series expansion and then showing that all the coefficients are zero. Is there a proof that first uses a series expansion?
Is this related to the fundamental theorem of algebra (https://en.wikipedia.org/wiki/Fundamental_theorem_of_algebra) and why it cannot be expanded to an infinite dimensional polynomial?