OFFSET
1,3
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10001
FORMULA
a(n) ~ n. - David A. Corneth, Nov 13 2023
EXAMPLE
9845261 is in the sequence as 9845261 has digits {1, 2, 4, 5, 6, 8, 9}, 9845261^2 = 96929164158121 has digits {1, 2, 4, 5, 6, 8, 9} as does 9845261^3 = 954292919648546514581. - David A. Corneth, Nov 13 2023
MATHEMATICA
Select[Range[0, 2*10^7], Union[IntegerDigits[#]]==Union[ IntegerDigits[ #^2]] == Union[ IntegerDigits[ #^3]]&] (* Harvey P. Dale, Nov 04 2015 *)
PROG
(PARI)
is(n) = {
my(s = Set(digits(n)));
s == Set(digits(n^2)) && s == Set(digits(n^3))
} \\ David A. Corneth, Nov 13 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
More terms from David A. Corneth, Nov 13 2023
STATUS
approved