a. Let , , be positive integers. Prove that and have identical first (rightmost) digits in their decimal representations.
b. Find the first digit of the decimal representation of the number
a. Let , , be positive integers. Prove that and have identical first (rightmost) digits in their decimal representations.
b. Find the first digit of the decimal representation of the number
a. By the Euler-Fermat theorem, since and , we have
for any positive integers , , . This means and have the same rightmost digit.
b. The rightmost digit is .
By part (a), since , we have
This shows the rightmost digit of the given number is .