sum (2i^2 - 4i + 5/7^i), i=0..n