BdMO National 2021 Primary Problem 5
Posted: Mon Apr 12, 2021 9:43 pm
কোনো ধনাত্মক পূর্ণসংখ্যা $n$-এর জন্য $g(n)$ দিয়ে আমরা তার অঙ্কগুলোর যোগফলকে বোঝাই। কোনো ধনাত্মক পূর্ণসংখ্যা $x$-এর জন্য $g(x),g(g(x)),g(g(g(x))),\cdots$ সিকোয়েন্সেরটার কথা চিন্তা করো। একসময় এই সিকোয়েন্সের পদগুলো আর পরিবর্তিত হবে না। সেই অবস্থায় সিকোয়েন্সের পদগুলো যে সংখ্যাটার সমান হবে, সেটার নাম দাও $f(x)$। কতগুলো ধনাত্মক পূর্ণসংখ্যা $a\leq2021$ আছে যেন $f(a)=9$ হয়?
For a positive integer $n$, let $g(n)$ be the sum of its digits. For a positive integer $x$, consider the sequence $g(x),g(g(x)),g(g(g(x))),\cdots$. At some point, this sequence will eventually be a constant. Denote that constant by $f(x)$. Find the number of positive integers $a\leq2021$ such that $f(a)=9$.
For a positive integer $n$, let $g(n)$ be the sum of its digits. For a positive integer $x$, consider the sequence $g(x),g(g(x)),g(g(g(x))),\cdots$. At some point, this sequence will eventually be a constant. Denote that constant by $f(x)$. Find the number of positive integers $a\leq2021$ such that $f(a)=9$.