then a^3 ends in 7.