OFFSET
1,1
COMMENTS
This sequence is infinite since 3*10^k is always in this sequence for k > 0.
Is 173 the last term not of the form 3*10^k?
3*10^7 < a(14) <= 3*10^8.
EXAMPLE
k = 15 is a member of this sequence since 15^2 = 225 contains two distinct digits and 15^3 = 3375 contains three distinct digits.
MATHEMATICA
Select[Range[3*10^6], Length[DeleteCases[DigitCount[#^2], 0]]==2&&Length[ DeleteCases[ DigitCount[#^3], 0]]==3&] (* The program generates the first 12 terms of the sequence. *) (* Harvey P. Dale, Jan 21 2023 *)
PROG
(PARI)
for(n=1, 3*10^7, d2=digits(n^2); d3=digits(n^3); if(#vecsort(d2, , 8)==2&&#vecsort(d3, , 8)==3, print1(n, ", ")))
(Python)
A247047_list = [n for n in range(1, 10**6) if len(set(str(n**3))) == 3 and len(set(str(n**2))) == 2]
# Chai Wah Wu, Sep 26 2014
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Derek Orr, Sep 10 2014
EXTENSIONS
a(14)-a(15) from Chai Wah Wu, Sep 26 2014
a(16)-a(18) from Kevin P. Thompson, Jul 01 2022
STATUS
approved