a guest May 16th, 2018 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def soma_progressao_aritmetica(n, a1, q):
- return a1 * (q**n - 1) / (q - 1)
- print(soma_progressao_aritmetica(n=7, a1=1, q=3)) # 1093.0
RAW Paste Data