AP
Average of n numbers of arithmetic progression (AP) is the average of the smallest and the largest number of them. The average of m number can also be written as x + d(m-1)/2.
Example:
The average of all integers from 1 to 5 is (1+5)/2=3
The average of all odd numbers from 3 to 3135 is (3+3135)/2=1569
The average of all multiples of 7 from 14 to 126 is (14+126)/2=70
remember:
Make sure no number is missing in the middle.
With more numbers, average of an ascending AP increases.
With more numbers, average of a descending AP decreases.
AP:numbers from sum
given the sum s of m numbers of an AP with constant increment d, the numbers in the set can be calculated as follows:
the first number x = s/m - d(m-1)/2,and the n-th number is s/m + d(2n-m-1)/2.