Take a test Sign in 中文
← Exercise 889 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 889
For each positive integer $n$, let $S(n)$ be the sum of the digits of $n$. For how many values of $n$ is $n+S(n)=2025$?
← Back to Problem 889
Solution
  1. $n\equiv S(n)\pmod9$, so $2n\equiv2025\equiv0\pmod9$, i.e.\ $9\mid n$. Also $S(n)\le28$, so $n\ge1997$.
  2. Multiples of $9$ from $1997$ to $2025$: $1998+27=2025$ works, $2007+9=2016$ fails, $2016+9=2025$ works, $2025+9$ fails.
  3. So there are $\boxed{2}$ values.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year