Find the smallest positive integer whose cube ends with 888.
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 are looking for the smallest positive integer n such that n 3 ≡ 8 8 8 m o d 1 0 0 0 . Since 1 0 0 0 = 8 ⋅ 1 2 5 , we can consider n 3 modulo 8 and 1 2 5 respectively.
First, note that n 3 ≡ 8 8 8 ≡ 0 m o d 8 . Thus, n = 2 m for some m . Then ( 2 m ) 3 ≡ 8 8 8 m o d 1 2 5 ⟹ m 3 ≡ 1 1 1 m o d 1 2 5 . Now we will work our way up the powers of 5 to determine m .
We have that m 3 ≡ 1 m o d 5 , and thus m ≡ 1 m o d 5 ; say m = 1 + 5 k for some k . Then m 3 ≡ 1 1 m o d 2 5 ⟹ ( 1 + 5 k ) 3 ≡ 1 1 m o d 2 5 ⟹ 1 + 1 5 k ≡ 1 1 m o d 2 5 ⟹ 1 5 k ≡ 1 0 m o d 2 5 . Dividing both sides by 5 (including the modulus) yields 3 k ≡ 2 m o d 5 ⟹ k ≡ 4 m o d 5 ; say k = 4 + 5 l for some l , so m = 2 1 + 2 5 l .
Finally, m 3 ≡ 1 1 1 m o d 1 2 5 ⟹ ( 2 1 + 2 5 l ) 3 ≡ 1 1 1 m o d 1 2 5 ⟹ 2 5 l ≡ 7 5 m o d 1 2 5 . Again, dividing both sides by 2 5 yields l ≡ 3 m o d 5 , say l = 3 + 5 j for some j . Then we have m = 2 1 + 2 5 ( 3 + 5 j ) = 9 6 + 1 2 5 j .
Since n = 2 m = 1 9 2 + 2 5 0 j and we want the smallest positive n , we can choose j = 0 and so n = 1 9 2