a_1 = 3a_N = 495r = 6 N = (a_N - a_1)/r + 1S = N/2 * (a_1 + a_N) print(S)
Standard input is empty
20667.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!