https://www.mathsisfun.com/algebra/sequences-sums-arithmetic.html http://mathematics.laerd.com/maths/geometric-progression-intro.php