Problem 1

 - Brute force solution: just generate the numbers and sum
 - Math solution: calculate sum of arithmetic sequence with formula