OFFSET
0,2
COMMENTS
Row lengths of A355370.
PROG
(Python)
def ok(k, n): return sum(map(int, str(k**n)))%k==0
def a(n):
d, lim = 1, 1
while lim < n*9*d: d, lim = d+1, lim*10
return sum(1 for k in range(1, lim+1) if ok(k, n))
print([a(n) for n in range(67)]) # Michael S. Branicky, Jul 07 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Mohammed Yaseen, Jul 07 2022
STATUS
approved