Find the last nonzero digit of n = 3^8 × 5^6 when n is expressed in base 10.
Note
Compute units digit: 3^8 ≡ 1 (mod 10) as 3's cycle is 4, and 5^6 ≡ 5 (mod 10); product ≡ 1 × 5 = 5, so the last nonzero digit is 5.
Find the last nonzero digit of n = 3^8 × 5^6 when n is expressed in base 10.
Compute units digit: 3^8 ≡ 1 (mod 10) as 3's cycle is 4, and 5^6 ≡ 5 (mod 10); product ≡ 1 × 5 = 5, so the last nonzero digit is 5.