Given the positive integers, , , and , are consecutive terms of an arithmetic progression, the least value of the positive integer, , for which the equation, , has exactly two solutions is :
It turns out that is the least value which has exactly ten solutions.
How many values of less than one million have exactly ten distinct solutions?