Let $\displaystyle S = \{1,2,3,\mbox{...}, 10\}$. If $\displaystyle m$ is the number of ways of selecting $\displaystyle p$ and $\displaystyle q$ from the set $\displaystyle S$ such that the function $\displaystyle f(x) = \frac{x^3}{3} + \frac{p}{2}x^2 + qx + 10$ is a one-one function and $\displaystyle n$ is the number of ways of selecting $\displaystyle p$ and $\displaystyle q$ from the set $\displaystyle S$ such that $\displaystyle |p - q| < 4$, determine the greater of the two numbers.

Answer:Spoiler:

How to do it?