Let us start with any number n and multiply it with itself 6 times to get a number N. We observe that
N=n×n×n×n×n×n=(n×n)×(n×n)×(n×n)
=(n2)×(n2)×(n2)=(n2)3.
Thus N is the cube of n2. On the other hand you may also observe that
N=n×n×n×n×n×n=(n×n×n)×(n×n×n)
=(n3)×(n3)=(n3)2.
Hence N is also the square of n3. Thus N is both a perfect cube and a perfect square. Taking n=2, we get the least number: N=2×2×2×2×2×2=64. We may verify that 64=43 and 64=82.