Take a test Sign in 中文
← Exercise 904 →
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 904
For how many integers $b$ with $4\le b\le20$ is the base-$b$ number $3031_b-131_b$ \emph{not} divisible by $5$?
← Back to Problem 904
Solution
  1. $3031_b-131_b=(3b^3+3b+1)-(b^2+3b+1)=3b^3-b^2=b^2(3b-1)$.
  2. Since $5$ is prime, $5$ divides this exactly when $5\mid b$ or $5\mid 3b-1$. The second condition is $3b\equiv1\pmod5$, i.e.\ $b\equiv2\pmod5$.
  3. So the number is not divisible by $5$ exactly when $b\equiv1,3,4\pmod5$.
  4. In $4\le b\le 20$ these are $4,6,8,9,11,13,14,16,18,19$: $\boxed{10}$ values.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year