Let $a_1, a_2, ..., a_n$ be positive integers all of whose prime divisors are $\le$ 13.
a) Show that if $n \ge 65$ then there exist two of these integers whose product is a perfect square. [DONE]
b) Show that if $n \ge 193$ then there exists four of these integers whose product is a perfect fourth power.
Hint: Use a) to get many pairs of numbers which multiply to a square. Use a) again to get two disjoint such pairs a, b, and c, d such that $\sqrt{ab}\sqrt{cd}$ is a square.
For b, I got 64 pairs of numbers which multiply to a square using part a. Where do I go from there?
Part b: We claim that we can find $65$ disjoint pairs of integers such that their product is a square. By part a), for $n\ge 193>65$, we can find one such pair. Then remove the pair from the set, and apply part a) again on the remaining $n-2$ integers. We can do this repeatedly, and because $n-2\cdot 64\ge65$, we can find at least $65$ pairs. Because the original set of integers was distinct, the pairs are disjoint. Now for each pair $(a,b)$ consider $\sqrt{ab}$, which is an integer. By part a, there are distinct $a,b,c,d$ such that $\sqrt{ab}\cdot \sqrt{cd}$ is a perfect square, so $abcd$ is a perfect $4$th power.