a perfect square is defined as the square of an integer and a perfect cube is defined as the cube of an integer . how many positive integers n are there such that n is less than 50,000 and at the same time n is a perfect square and a perfect cube ?