For each positive integer , let
Let denote the smallest positive integer for which the rightmost nonzero digit of is odd. What is the rightmost nonzero digit of ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
a n can be written as n ( n + 1 ) ( n + 2 ) . . . ( n + 9 ) , i.e. it is the product of the 10 consecutive integers starting from n . Let k be the smallest positive integer for which the rightmost non-zero digit of a k is odd. We can write a k as:
a k = 1 0 p b
where 2 ∤ b , i.e p is the largest power of 2 that divides a k . Secondly, 5 p ∣ a k . Since we want to find the smallest positive integer for which this is true we need to find the smallest value for p for which this is true.
To calculate a n , we are multiplying 10 consecutive integers. Hence, we will always have 5 of them even, at least two of them divisible by 4 and at least one divisible by 8. That means for all n , 2 8 ∣ a n . To find k , we want 5 8 ∣ a k and 2 9 ∤ a k .
We always have two multiples of 5 in 10 consecutive integers, one odd and one even. (Note: only one of them can be divisible 25.) As long as one of them is divisible by 5 7 , we will have 5 8 ∣ a k . Since we are looking for the smallest value, we start setting the odd multiple to 5 7 = 7 8 1 2 5 . This means k ≥ 7 8 1 1 6 . If we choose k = 7 8 1 1 6 , we have 3 multiples of 4 in the next 10 integers, namely 78116, 78120, 78124 and hence 2 9 ∣ a 7 8 1 1 6 . So we choose k = 7 8 1 1 7 . Therefore:
a k = 7 8 1 1 7 × 7 8 1 1 8 × 7 8 1 1 9 × 7 8 1 2 0 × 7 8 1 2 1 × 7 8 1 2 2 × 7 8 1 2 3 × 7 8 1 2 4 × 7 8 1 2 5 × 7 8 1 2 6
Simplifying we get, a k = 7 8 1 1 7 × 3 9 0 5 9 × 7 8 1 1 9 × 1 9 5 3 × 7 8 1 2 1 × 3 9 0 6 1 × 7 8 1 2 3 × 1 9 5 3 1 × 3 9 0 6 3 × 5 8 × 2 8
Clearly we have 2 9 ∤ a k and thus the last non-zero digit is odd. In order find the last non-zero digit, d , we just multiply the last digits to get:
d = 7 × 9 × 9 × 3 × 1 × 1 × 3 × 1 × 3 m o d 1 0 = 9
which is our final answer.