Problem

Source: Moldova 2000

Tags: function, logarithms, induction, algebra unsolved, algebra



Let $ p$ be a positive integer. Define the function $ f: \mathbb{N}\to\mathbb{N}$ by $ f(n)=a_1^p+a_2^p+\cdots+a_m^p$, where $ a_1, a_2,\ldots, a_m$ are the decimal digits of $ n$ ($ n=\overline{a_1a_2\ldots a_m}$). Prove that every sequence $ (b_k)^\infty_{k=0}$ of positive integer that satisfy $ b_{k+1}=f(b_k)$ for all $ k\in\mathbb{N}$, has a finite number of distinct terms. $ \mathbb{N}=\{1,2,3\ldots\}$