What is the smallest integer n such that a concatenation of n2 and n3 contains each of the ten decimal digits exactly once?
What is the smallest integer m, m>n such that a concatenation of m2 and m3 contains each of the ten decimal digits once and some of them more than once?
Please provide few additional(i.e. not smallest) samples for both cases.