Last 10 digits of x^n