by HallsofIvy » Fri Jan 15, 2021 6:24 pm
We are told this is an arithmetic sequence so the first n terms are
a, a+ r, a+ 2r, ..., a+ (n-2)r, a+ (n-1)r, a+ nr
To sum those, use a trick that is attributed to Gauss (as a child!). Reverse them
a+ nr, a+ (n-1)r, a+ (n-2)r, ..., a+ 2r, a+ r, a and add vertically to get
a+ a+ nr= 2a+ nr, a+r+a+ (n-1)r= 2a+ nr, a+ 2r+ a+ (n-2)r= 2a+ nr....
Get the point? all those vertical sums give 2a+ nr so the sum of both rows is (2a+ nr)n= 2an+ n^2r. The two rows are the same, of course so the sum of just one is an+ n^2r/2.
We can do the same thing with the last n terms:
a+ (n+1)r, a+ (n+2)r..., a+ (2n-1)r, a+ 2nr and reverse
a+ 2nr, a+ (2n- 1)r, ..., a+ (n+2)r, a+ (n+ 1)r. Summing vertically,
a+ (n+ 1)r+ a+ 2nr= 2a+ (3n+ 1)r, a+ (n+2)r+ a+ (2n-1)= 2a+ (3n+1)r, etc.
Now all n "vertical" sums add to 2a+ (3n+ 1)r so the two rows sum to (2a+ (3n+ 1)r)n= 2an+ 3rn^2+ nr. So each row adds to an+ (3/2)rn^2+ rn/2.
The condition is that the sum of the last n terms is three times the sum of the first n terms. That is
an+ (3/2)rn^2+ rn/2= 3(an+ n^2r/2).