# PB-Basic-007 Solve the following problem using your own reasoning and local tools. Do not use web lookups or external models. Write a complete, self-contained, rigorous mathematical proof to `/app/proof.md`; create `/app` if necessary. ## Problem Determine all positive integers $n$ and integer sequences $a_0, a_1,\ldots, a_n$ such that $a_n = 3$ and \[f(a_{i-1}) = a_i\] for all $i = 1,2,\ldots,n$, where $f(x) = a_n x^n + a_{n-1} x^{n-1} + \cdots + a_1 x + a_0$.