How many positive integers $n < 10^6$ are there such that $n$ is equal to twice the square of an integer and is equal to three times the cube of an integer?

Let's think step by step and output the final answer within \boxed{}.
user