Find the sum of the first 40 terms of the arithmetic sequence: 13, 19, 25, 31, ...

5210