OFFSET
1,1
COMMENTS
For any term a(n), all numbers of the form a(n)*10^k, k >= 0, are in this sequence. We could call "primitive" the terms not of this form, i.e., without trailing '0'.
LINKS
Kanishk Bhalerao, Table of n, a(n) for n = 1..300
EXAMPLE
3 is in the sequence because the largest digit of 3^3 = 27 is 7.
MATHEMATICA
Select[Range[500], Max[IntegerDigits[#^3]]==7&] (* Harvey P. Dale, Sep 10 2019 *)
PROG
(PARI) for(n=1, 2e3, vecmax(digits(n^3))==7&&print1(n", "))
(Python)
def ok(k): return max(str(k**3)) == "7"
print([k for k in range(10**3) if ok(k)]) # Michael S. Branicky, Jan 02 2026
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler, Nov 13 2017
STATUS
approved
