Take a test Sign in 中文
← Exercise 475 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Counting (147)
Balls in Boxes (6)
Probability (142)

Exercises and their solutions

Exercise 475
Call a positive integer uphill if every digit is strictly greater than the previous digit. How many uphill integers are divisible by $33$?
← Back to Problem 475
Solution
  1. A multiple of $33$ is a multiple of $11$. A number is divisible by $11$ exactly when its alternating digit sum, starting with $+$ at the units digit, is divisible by $11$.
  2. Let the digits of an uphill integer be $d_1<d_2<\dots<d_k$, from left to right, so the alternating sum is $S=d_k-d_{k-1}+d_{k-2}-\cdots$.
  3. If $k$ is even, group $S=(d_k-d_{k-1})+(d_{k-2}-d_{k-3})+\dots+(d_2-d_1)$. Each bracket is at least $1$, and together they are at most $d_k-d_1\le8$. So $1\le S\le8$.
  4. If $k$ is odd, group $S=(d_k-d_{k-1})+\dots+(d_3-d_2)+d_1$. Again every part is positive, and the total is at most $d_k\le9$. So $1\le S\le9$.
  5. In both cases $S$ is not divisible by $11$, so no uphill integer is divisible by $11$, let alone by $33$. For example, $1234$ has $S=4-3+2-1=2$.
  6. The answer is $\boxed{0}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year