This is a coding question.Here we have to find the $k$-th value in which we get $888$ as the last three numbers for a cube of a number. For example, if $k=1$ the first value with last three numbers as $888$ is $192 ^3$.Then if $k=2$ the second value with last three numbers as $888$ is $442 ^3$. After checking the solution for the problem they arrived at this formula
- answer = $192+(k-1)250$.
My question is how did you arrive at this formula and how do you tackle math problems where you need to find n last digits.I know cyclicity is one of the methods but that is used to find the last digit.In this case i have to find the last three digits.