login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A347144
a(n) is the smallest number whose square uses all the digits but n.
0
11826, 45136, 12586, 32054, 36137, 10136, 32861, 32164, 10124, 10128
OFFSET
0,1
EXAMPLE
a(0) is the smallest number whose square is a zeroless pandigital number. A071519 lists numbers whose squares are zeroless pandigital numbers. Thus, a(0) = A071519(1) = 11826 (11826^2 = 139854276).
MATHEMATICA
Table[Select[Range[100000], Union[IntegerDigits[#^2]] == Delete[Range[0, 9], n + 1] &][[1]], {n, 0, 9}]
PROG
(Python)
def a(n):
k, target = 1, set(str(i) for i in range(10) if i != n)
while set(str(k*k)) != target: k += 1
return k
print([a(n) for n in range(10)]) # Michael S. Branicky, Aug 19 2021
CROSSREFS
Sequence in context: A110846 A071519 A294661 * A188310 A185496 A249842
KEYWORD
nonn,base,fini,full
AUTHOR
Tanya Khovanova, Aug 19 2021
STATUS
approved