Sum of arithmetic sequence given first and last term July 8, 2019 16 32 64 128 Sum of sequence Longest arithmetic subsequence of given difference