$A$ and $B$ are positive integers such that $$\gcd(A,B)=9, \text{lcm}(A,B)=180, A<B.$$ How many such $A$'s are there?
So from $\text{lcm}(A,B)=\frac{AB}{\gcd(A,B)} \Rightarrow 180 = \frac{AB}{9} \Rightarrow 1620=AB.$
Prime factoring $1620= 2^2\cdot3^4 \cdot5 = 4\cdot81\cdot5$, from here it seems that $81$ is the largest prime factor and the two other possbile prime factors are $4$ and $5$. Just following my intuition this got me to the right answer which was $2$, however I cannot find any justification for this. Is my reasoning correct or could the be a setting where this would fail? If so what would be the alternatives?