There is a classical question in discrete math such a kind that
Let $a\times b \times c =24 $ then , how many possible $(a,b,c)$ triples are there where $a,b,c \in Z^+$
The answer is the following $x_1+x_2+x_3 =3$ and $y_1+y_2+y_3 =1$ , then $$\binom{3+3-1}{3}\binom{3+1-1}{1}=30$$
Now , i want to turn this question to this one such that
Let $a\times b \times c < 24 $ then , how many possible $(a,b,c)$ triples are there where $a,b,c \in Z^+$
In first hand , it thought to add another integer $d$ such that $d >1 $ and $a\times b \times c \times d = 24 $
Now , i must do the same calculation like in triple case and subtract the cases where $d=1$ from the total.For example , $$\binom{4+3-1}{2}\binom{4+1-1}{1}-\binom{3+3-1}{3}\binom{3+1-1}{1}=60-30 =30$$
However , my logic is wrong ,i saw it for small case such as $a \times b \times c =6$.
Do you have any suggestion or solution for my problem except for computer programming ?
B.T.W My question is not only specific for $24$ , i chose it because it is easy to handle , but it could be any other number such as $678$ etc. So , i am looking for the solution which can handle large numbers