input: Write a python function to compute the t-nth term of an arithmetic progression.
  assert ap_term(1,5,2)==9
  assert ap_term(2,6,4)==22
  assert ap_term(1,4,5)==16
output: def ap_term(a, d, n):
      return a + (n - 1) * d