|
|
A347144
|
|
a(n) is the smallest number whose square uses all the digits but n.
|
|
0
|
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
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
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,fini,full
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|