OFFSET
1,2
LINKS
James C. McMahon, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = n^A373203(n). - Michel Marcus, Jun 01 2024
EXAMPLE
a(12) = 1728 = 12^3, as 144=12^2 does not contain 2.
MATHEMATICA
seq={}; Do[k=1; Until[ ContainsAll[IntegerDigits[n^k], IntegerDigits[n] ], k++ ]; AppendTo[seq, n^k] , {n, 35}]; seq (* James C. McMahon, Jun 01 2024 *)
PROG
(PARI) a(n) = my(k=2, d=Set(digits(n))); while(setintersect(Set(digits(n^k)), d) != d, k++); n^k; \\ Michel Marcus, Jun 03 2024
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Aug 03 2005
EXTENSIONS
More terms from Harvey P. Dale, Dec 20 2006
STATUS
approved