Skip to content / Đến nội dung
ThichHocToan.com

MathNet 2011 Question 57

Math Olympiad Vault · MathNet 2011

Question 57

Let $S(n)$ be the sum of all digits in the decimal representation of $n \in \mathbb{N}$. How many numbers $n$, $1 \le n \le 999$, satisfy the following condition $S(n) = \text{GCD}(n, n+6)$?