Take a test Sign in 中文
← Exercise 787 →
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 787
Let $n>4$ be a positive integer such that $n!$ ends in $k$ zeros and $(3n)!$ ends in $4k$ zeros. What is the sum of the four least possible values of $n$?
← Back to Problem 787
Solution
  1. For $n<25$, $z(n)=k=\lfloor n/5\rfloor$ with $n=5k+r$, and $z(3n)=3k+\lfloor3r/5\rfloor+\lfloor3n/25\rfloor$ (for $3n<125$).
  2. $k=1$ ($n=5,\dots,9$, $3n\le27$): need $z(3n)=4$. $n=5,6$: $3$; $n=7,8$: $21!,24!$ give $4$; $n=9$: $27!$ gives $6$.
  3. $k=2$ ($n=10,\dots,14$, $3n\ge30$): $z(3n)=6+\lfloor3r/5\rfloor+1$; equals $8$ for $r=2,3$: $n=12,13$.
  4. The four least values are $7,8,12,13$, with sum $\boxed{40}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year