Only for illustration, let's choose an integer $N=6$. I want to create a collection of all possible quadratic equations in the form of $ax^2+bx+c=0$ where
- $|ac|=|\alpha\beta|=N=6$, and
- $\alpha+\beta=b$.
Note that all constants are integers but $x$ is not necessarily integer.
Here is my attempt.
How many ways to specify $a$ and $c$
The prime factors of $N$ is $$ P=\{2,3\} $$
The all possible pairs of $(a,c)$ are $$ \{(1,\pm 6), (6,\pm 1), (2,\pm 3), (3,\pm 2)\} $$ Here I don't need to consider the case in which $a<0$ because, for example, $6x^2+5x-1=0$ is actually identical to $-6x^2-5x+1=0$. Only the sign of $b$ and $c$ do matter here. From $2^2=4$ subsets of $P$, we can create $\frac{2^2}{2}=2$ "partitions", each "partition" can be assigned to $(a,c)$ in $2!=2$ ways, and $c$ can have two choice of signs. Thus there are $$ \frac{2^2}{2}\times 2! \times 2 = 8 $$ ways to create $(a,c)$.
How many ways to specify $b$
The all possible pairs of $(\alpha,\beta)$ are $$ \{(\pm 1,\pm 6), (\pm 2,\pm 3)\} $$
Therefore the all possible values of $b$ are $$ \{\pm |1+6|, \pm |1-6| = \pm |2+3|, \pm |2-3|\} = \{\pm 7, \pm 5, \pm 1 \} $$
I cannot find an easier way to calculate how many possible ways to determine $b$ because the same $b$ can be obtained from two (or possibly more) "partitions". For example, partition $\{1,6\}$ and $\{2,3\}$ can produce $b=\pm 5$ as follows. $$ \pm |1-6| = \pm |2+3| $$
As we can see, there are $3\times 2=6$ ways to assign $b$.
Final
Thus in total, we have $8\times 6=48$ quadratic equations. I have not checked programmatically whether all of these equations have distinct pair of roots.
Question
Generally speaking, for any positive integer $N$, how many quadratic equations (with the constraints given above) are possible to make?