there is a unique number of which the square and the cube together use all numbers from 0 up to 9 exactly once.

which number is this ?