A289690 Least k such that there are exactly n perfect powers between 10k and 10k + 10.
5, 1, 2, 12, 0
Offset: 0
Examples
If n=2, then there are 2 power numbers between 20 and 30: 25 and 27, and this is the least k with this property.
Programs
-
PARI
a(n)=my(k=0); while(sum(j=10*k+1, 10*k+9, (j==1) || ispower(j)) !=n, k++); k; \\ Michel Marcus, Jul 20 2017
Comments