Problem

Source: 2021 Saudi Arabia Training Lists p37 https://artofproblemsolving.com/community/c2758131_2021_saudi_arabia_training_tests

Tags: perfect cube, number theory



Given $n \ge 2$ distinct positive integers $a_1, a_2, ..., a_n$ none of which is a perfect cube. Find the maximal possible number of perfect cubes among their pairwise products.