Question:
The square of $567$ is $321,489$. These two numbers contain each of the digits from $1$ to $9$ exactly once between them. What other three-digit number and its square have this property?
I know what the answer is, I just don't know how to get there.
[x for x in range(317,1000) if set([int(k) for k in str(x)+str(x**2)])=={1,2,3,4,5,6,7,8,9}]– Carl Schildkraut Oct 22 '18 at 01:04