A085453 Numbers n such that n^2 and n^3 together use only distinct digits.
2, 3, 8, 9, 24, 69
Offset: 1
Examples
69 is (the last) term because 69^2=4761 and 69^3=328509 together use all 10 distinct digits.
Programs
-
Mathematica
bb = {}; Do[idpn = IntegerDigits[n^3]; idn = IntegerDigits[n^2]; If[Length[idn] + Length[idpn] == Length[Union[idn, idpn]], bb = {bb, n}], {n, 1, 10000}]; Flatten[bb]
Comments