Welcome 2016! Part 32

For each positive integer n n , let

a n = ( n + 9 ) ! ( n 1 ) ! \large a_{n}=\dfrac{(n+9)!}{(n-1)!}

Let k k denote the smallest positive integer for which the rightmost nonzero digit of a k a_{k} is odd. What is the rightmost nonzero digit of a k a_{k} ?


The answer is 9.

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.

1 solution

Kostub Deshmukh
Jan 9, 2016

a n a_n can be written as n ( n + 1 ) ( n + 2 ) . . . ( n + 9 ) n(n+1)(n+2)...(n+9) , i.e. it is the product of the 10 consecutive integers starting from n n . Let k k be the smallest positive integer for which the rightmost non-zero digit of a k a_k is odd. We can write a k a_k as:

a k = 1 0 p b a_k = 10^pb

where 2 b 2 \nmid b , i.e p p is the largest power of 2 that divides a k a_k . Secondly, 5 p a k 5^p\mid 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 p for which this is true.

To calculate a n 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 n , 2 8 a n 2^8 \mid a_n . To find k k , we want 5 8 a k 5^8 \mid a_k and 2 9 a k 2^9 \nmid 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 5^7 , we will have 5 8 a k 5^8 \mid a_k . Since we are looking for the smallest value, we start setting the odd multiple to 5 7 = 78125 5^7 = 78125 . This means k 78116 k \ge 78116 . If we choose k = 78116 k = 78116 , we have 3 multiples of 4 in the next 10 integers, namely 78116, 78120, 78124 and hence 2 9 a 78116 2^9 \mid a_{78116} . So we choose k = 78117 k=78117 . Therefore:

a k = 78117 × 78118 × 78119 × 78120 × 78121 × 78122 × 78123 × 78124 × 78125 × 78126 a_k = 78117\times78118\times78119\times78120\times78121\times78122\times78123\times78124\times78125\times78126

Simplifying we get, a k = 78117 × 39059 × 78119 × 1953 × 78121 × 39061 × 78123 × 19531 × 39063 × 5 8 × 2 8 a_k = 78117\times39059\times78119\times1953\times78121\times39061\times78123\times19531\times39063\times5^8\times2^8

Clearly we have 2 9 a k 2^9\nmid a_k and thus the last non-zero digit is odd. In order find the last non-zero digit, d d , we just multiply the last digits to get:

d = 7 × 9 × 9 × 3 × 1 × 1 × 3 × 1 × 3 m o d 10 = 9 d = 7\times9\times9\times3\times1\times1\times3\times1\times3 \mod 10 = 9

which is our final answer.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...