Question 155
Find all positive integer pairs $(n, a)$ such that the quotient
$$
\frac{a^{n+1} + 3^{n+1} + 1}{a^n + 3^n + 1}
$$
is an integer.
$$
\frac{a^{n+1} + 3^{n+1} + 1}{a^n + 3^n + 1}
$$
is an integer.
Math Olympiad Vault · MathNet 2022-part-03 — 197 problems (EN–VI)