14 Nis 2011 ... 10k for some 1<=m<10 and k an integer so that log(x) = k log m (take log=log_10). So one only needs to compute the logarithms between 1 and 10.