OFFSET
1,2
LINKS
Zhining Yang, Table of n, a(n) for n = 1..55
EXAMPLE
a(11) = 64 because among all 11-digit sixth powers (47^6-68^6), 64^6=68719476736 and 68^6=98867482624 have the maximum sum of digits, 96 = A373994(11) and 64 is the least number.
MATHEMATICA
a[n_]:=Module[{s=Ceiling[10^((n-1)/6)], max=0}, For[k=s, k<=Floor[(10^n-1)^(1/6)], k++, t=Total@IntegerDigits[k^6]; If[t>max, s=k; max=t]]; s]; Table[a[n], {n, 36}]
CROSSREFS
KEYWORD
nonn,base,new
AUTHOR
Zhining Yang, Jan 26 2025
STATUS
approved