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?