Ok so I came upon this question, and I have absolutely no idea how do we proceed.
I had done a similar kind of question which was :-
Find the number of ways to express 12 as a product of 2 factors
In this case it was much simpler, in which I was only required to find out the total number of factors and then divide it by 2 in order to obtain the answer.
In case it had been a perfect square , then I would be required to take the smallest integer function of $\frac{Number\ of\ factors}{2} +1$.
However what do we do for expressing numbers as triplets? I tried thinking about considering various perfect squares and perfect cubes in the factors and trying to deduce something from that , however I could not do that.