fork(2) download
  1. a_1 = 3
  2. a_N = 495
  3. r = 6
  4.  
  5. N = (a_N - a_1)/r + 1
  6. S = N/2 * (a_1 + a_N)
  7.  
  8. print(S)
Success #stdin #stdout 0.02s 27696KB
stdin
Standard input is empty
stdout
20667.0