Take a test Sign in 中文
← Exercise 757 →
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 757
For $n$ a positive integer, let $R(n)$ be the sum of the remainders when $n$ is divided by $2$, $3$, $4$, $5$, $6$, $7$, and $8$. How many two-digit positive integers $n$ satisfy $R(n)=R(n+1)$?
← Back to Problem 757
Solution
  1. When $n$ increases by $1$, the remainder mod $k$ increases by $1$, unless $k\mid n+1$, in which case it drops from $k-1$ to $0$, a change of $-(k-1)$. So $R(n+1)-R(n)=7-\sum k$, where the sum is over those $k\in\{2,\dots,8\}$ that divide $n+1$. We need this set of $k$ to have sum $7$.
  2. The subsets of $\{2,\dots,8\}$ with sum $7$ are $\{7\}$, $\{2,5\}$, $\{3,4\}$. But $4\mid n+1$ forces $2\mid n+1$, so $\{3,4\}$ is impossible. Both other sets are possible.
  3. Set $\{7\}$: $7\mid n+1$ and $2,3,5\nmid n+1$ (then $4,6,8\nmid n+1$). So $n+1=7m$ with $m$ coprime to $30$: $49,77,91$.
  4. Set $\{2,5\}$: $10\mid n+1$ and $3,4,7\nmid n+1$ (then $6,8\nmid n+1$). Among $20,30,\dots,100$ only $50$ works.
  5. So $n\in\{48,76,90,49\}$: $\boxed{4}$ values.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year