A list of numbers a1,a2,…,am contains an arithmetic trio ai,aj,ak if i<j<k and 2aj=ai+ak.
Let n be a positive integer. Show that the numbers 1,2,3,…,n can be reordered in a list that does not contain arithmetic trios. number theoryrecursiveArithmetic Progression