OFFSET
1,2
EXAMPLE
a(6) = 28 because 28 is the largest digital sum encountered among all 6-digit sixth powers (117649, 262144, 531441).
MATHEMATICA
Table[Max@Map[Total@IntegerDigits[#^6] &, Range[Ceiling[10^((n - 1)/6)], Floor[(10^n-1)^(1/6)]]], {n, 42}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zhining Yang, Jun 26 2024
STATUS
approved