OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..103
EXAMPLE
14 is in the list because 14^3 = 2744. - Jon Perry, Nov 04 2014
MAPLE
a := proc (n) if nops(convert(convert(n^3, base, 10), set)) = 3 then n else end if end proc: seq(a(n), n = 1 .. 150000); # Emeric Deutsch, Jan 27 2009
MATHEMATICA
Select[Range[120000], Length[Union[IntegerDigits[#^3]]]==3&] (* Vincenzo Librandi, Nov 04 2014 *)
PROG
(Python)
A155146_list, n3, m = [], 0, 0
for n in range(1, 10**7):
....m += 6*(n-1)
....n3 += m + 1
....if len(set(str(n3))) == 3:
........A155146_list.append(n) # Chai Wah Wu, Nov 03 2014
(Magma) [n: n in [0..120000] | #Set(Intseq(n^3)) eq 3]; // Vincenzo Librandi, Nov 04 2014
(PARI) is(n)=#Set(digits(n^3))==3 \\ Charles R Greathouse IV, Feb 11 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Dmitry Kamenetsky, Jan 21 2009
EXTENSIONS
Extended by Emeric Deutsch, Jan 27 2009
STATUS
approved