daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest May 16th, 2018 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def soma_progressao_aritmetica(n, a1, q):
  2.     return a1 * (q**n - 1) / (q - 1)
  3.    
  4. print(soma_progressao_aritmetica(n=7, a1=1, q=3))  # 1093.0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top