John takes seven positive integers a1,a2,...,a7 and writes the numbers aiaj, ai+aj and |ai−aj| for all i≠j on the blackboard. Find the greatest possible number of distinct odd integers on the blackboard.
Problem
Source: 2002 Estonia National Olympiad Final Round grade 10 p3
Tags: number theory, odd, Sum, Product