Arithmetic Sequenceshard
0:00.0

An arithmetic sequence has nn terms. The first term is aa and the last term is ll. Find the sum of the kk-th term from the beginning and the kk-th term from the end.