The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A374025 a(n) is the largest digit sum of all n-digit fifth powers. 3
 1, 5, 9, 27, 27, 36, 45, 46, 52, 63, 72, 80, 89, 90, 99, 104, 108, 119, 126, 143, 137, 152, 157, 162, 175, 180, 182, 189, 198, 208, 209, 216, 225, 234, 236, 250, 253, 270, 270, 284, 286, 288, 297, 310, 315, 323, 324, 334, 341, 346, 351, 364 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Table of n, a(n) for n=1..52. EXAMPLE a(5) = 27 because 27 is the largest digital sum encountered among all 5-digit fifth powers (16807, 32768, 59049). MATHEMATICA Table[Max@Map[Total@IntegerDigits[#^5] &, Range[Ceiling[10^((n - 1)/5)], Floor[(10^n-1)^(1/5)]]], {n, 40}] PROG (Python) from sympy import integer_nthroot def A374025(n): return max(sum(int(d) for d in str(m**5)) for m in range((lambda x:x[0]+(x[1]^1))(integer_nthroot(10**(n-1), 5)), 1+integer_nthroot(10**n-1, 5)[0])) # Chai Wah Wu, Jun 26 2024 CROSSREFS Cf. A055566, A018141, A018143, A348300, A373727, A373914. Sequence in context: A034498 A219499 A048884 * A077915 A222357 A271685 Adjacent sequences: A374022 A374023 A374024 * A374027 A374028 A374029 KEYWORD nonn,base,more AUTHOR Zhining Yang, Jun 25 2024 EXTENSIONS a(41)-a(49) from Chai Wah Wu, Jun 26 2024 a(50)-a(52) from Chai Wah Wu, Jun 27 2024 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified August 10 19:25 EDT 2024. Contains 375058 sequences. (Running on oeis4.)