OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = 2: 0, 1.
a(3) = 1: 128.
a(4) = 1: 2187.
a(5) = 2: 16384, 78125.
a(6) = 2: 279936, 823543.
a(7) = 2: 2097152, 4782969.
a(8) = 4: 10000000, 19487171, 35831808, 62748517.
a(9) = 6: 105413504, 170859375, 268435456, 410338673, 612220032, 893871739.
MAPLE
r:= proc(n, k) local b; b:= iroot(n, k); b+`if`(b^k<n, 1, 0) end:
a:= n-> r(10^n, 7) -r(10^(n-1), 7) +`if`(n=1, 1, 0):
seq(a(n), n=1..50);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alois P. Heinz, Sep 12 2012
STATUS
approved