How many 30 digit numbers whose cube is ending by the same number ?

Solution

As a pocket calculator able to get the cube of so big numbers is unavailable, I give you a hint :

The **square** of A = 893380022607743740081787109376 is ending by A.

Deduce from that every 30 digit numbers whose **cube** ends in themselves.

Solution