A295025 Cubes whose largest digit is 5.
125, 512, 125000, 405224, 512000, 531441, 1225043, 5000211, 5545233, 13312053, 43243551, 54010152, 102503232, 115501303, 125000000, 221445125, 320013504, 400315553, 405224000, 512000000, 531441000, 1204550144, 1225043000, 2053225511, 2253243231, 2543302125
Offset: 1
Examples
512 is in the sequence because it is a cube, 512 = 8^3, and its largest digit is 5.
Crossrefs
Programs
-
PARI
for(n=1,2e8, vecmax(digits(n^3))==5&&print1(n^3,","))
-
Python
def ok(cube): return max(str(cube)) == "5" print([c for c in (i**3 for i in range(1370)) if ok(c)]) # Michael S. Branicky, Dec 05 2021
Formula
a(n) = A294665(n)^3.
Comments