Let be defined as a function such that for any positive integer , finds the smallest possible integral value for such that . Let be the probability that if a random nonnegative integer is selected that . If can be written as where and are coprime, positive integers, find .
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.
We need only consider when n ≡ 0 → 9 ( m o d 1 0 ) , so let's check the cases for n = 0 → 9 .
Note that for n = 2 , 3 , 7 , 8 , we have that n 5 ≡ n ( m o d 1 0 ) :
2 , 4 , 8 , 1 6 , 3 2
3 , 9 , 2 7 , 8 1 , 2 4 3
7 , 4 9 , 3 4 3 , 2 4 0 1 , 1 6 8 0 7
8 , 6 4 , 5 1 2 , 4 0 9 6 , 3 2 7 6 8
For all the others, m < 5 .
Therefore, our probability is 1 0 4 = 5 2 and our desired answer is 2 + 5 = 7 .