Question :
What is the number of ordered triplets of natural numbers $a, b, c$ such that $a b c=2^5 \times 3^7$ and H.C.F. $(a, b, c)=1$
My approach :
I tried making cases where the exponent of $2$ is "shared" between two numbers and the last one is $3^7$, then I did the same the other way round, then one having 2, one with 3, and one with both.
It was really tedious and I got the wrong answer $180$ [ and the text book itself had the wrong answer $432$ ] whereas the right answer is $315$.
PROBLEM :
Let us say we have $3$ "Buckets" where we want to "Distribute" $5$ "Black" Balls & $7$ "White" Balls.
Let us also say that all $3$ Buckets having a Common Colour Ball is not allowed.
It is "almost" Equivalent to what you want.
CALCULATION :
Total ways of Distributing $5$ Black Balls : Partitioning $5$ into $3$ Parts.
There is a formula to get that , though we can avoid that formula in this simple case.
We can see that :
$(0,a,5-a)$ will work for $a=0,\cdots,5$ : 6 ways
$(1,a,4-a)$ will work for $a=0,\cdots,4$ : 5 ways
$(2,a,3-a)$ will work for $a=0,\cdots,3$ : 4 ways
$(3,a,2-a)$ will work for $a=0,\cdots,2$ : 3 ways
$(4,a,1-a)$ will work for $a=0,\cdots,1$ : 2 ways
$(5,a,0-a)$ will work for $a=0,\cdots,0$ : 1 ways
Total $6 \times 7/2 = 21$ ways
Like-wise for the White Balls , we have $8 \times 9/2 = 36$
Total ways $21 \times 36 = 756$
It is "almost" Equivalent to the Number Case.
We are over-counting the Cases where Common Colour Ball might occur in all Buckets. We want to eliminate that.
Put $1$ Black Ball each in the $3$ Buckets.
We have $2$ Balls , which we can "Partition" like $(2,0,0),(0,2,0),(0,0,2),(1,1,0),(1,0,1),(0,1,1)$ : $3 \times 4/2 = 6$ Ways are not "allowed".
Hence $21-6 = 15$ ways are "allowed".
Like-wise for White Balls , put $1$ White Ball each in the $3$ Buckets.
We have $4$ Balls , which gives $5 \times 6/2 = 15$ ways which are not allowed.
Hence "allowed" ways are $36-15 = 21$
Hence the total ways we want is $15 \times 21 = 315$
SUMMARY :
Total ways (with or without Common Coluor Ball) is $756$
Total ways without Common Colour Ball is $315$ (this is what we want)
$756-315=441$ ways are not allowed due to Common Colour Ball.
ADDENDUM :
I changed my line of attack : Instead of checking what was wrong here , I decided to list the various ways & figure out what was wrong with the other answer. That will show what is wrong where. I was able to figure the Core Issue !
Here are the $6$ ways to Distribute the $5$ Black Balls in 2 Buckets , leaving the first Bucket Empty :
$\color{red}{(0,0,5)},(0,1,4),(0,2,3),(0,3,2),(0,4,1),\color{red}{(0,5,0)}$
Now , the other answer multiplies this by $3$ to get $3 \times 6 = 18$ , because the Empty Bucket can be the middle or the last.
$\color{red}{(0,0,5)},(1,0,4),(2,0,3),(3,0,2),(4,0,1),\color{red}{(5,0,0)}$
$\color{red}{(0,5,0)},(1,4,0),(2,3,0),(3,2,0),(4,1,0),\color{red}{(5,0,0)}$
We can easily see that the first & the last (in red) will be over-counted $6$ times , though it should be counted only $3$ times , excluding the repeated elements.
Thus is it only $15$ ways.
Similarly , the other answer over-counts by $3$ to get $24$ , rather than $21$.
Hence Correct total is not $18 \times 24 = 432$ , it is $15 \times 21 = 315$
The other Answer is wrong , even though it is accepted.
WHEW !!