MathCastle
ChallengeMedium

Challenge · Medium problem

How many three-term arithmetic progressions can be chosen from {1,2,…,20}\{1,2,\dots,20\}? (A progression is an unordered set {a,a+d,a+2d}\{a,a+d,a+2d\} with d≥1d\ge 1.)

Practice more like this