The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A085453 Numbers n such that n^2 and n^3 together use only distinct digits. 0
2, 3, 8, 9, 24, 69 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
There are only six such numbers (in base 10). Numbers with distinct digits in A010784. Primes with distinct digits in A029743. The case n and n^2 (exactly 22 numbers) in A059930. The case n and prime[n] (exactly 101 numbers) in A085451.
LINKS
EXAMPLE
69 is (the last) term because 69^2=4761 and 69^3=328509 together use all 10 distinct digits.
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]
CROSSREFS
Sequence in context: A098506 A279090 A163168 * A271394 A030439 A119386
KEYWORD
fini,full,nonn,base
AUTHOR
Zak Seidov, Jul 01 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 23 16:13 EDT 2024. Contains 372765 sequences. (Running on oeis4.)