[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-25 19:37:29 +00:00
parent 32634eff5a
commit 7800f1e645

View File

@ -1,4 +1,4 @@
#Reeka
# Reeka
def sum_of_ap_series(a: int, d: int, n: int) -> int:
"""
Calculates the sum of the first 'n' terms of an arithmetic progression (AP)
@ -37,4 +37,6 @@ def sum_of_ap_series(a: int, d: int, n: int) -> int:
# Formula for the sum of an AP series: S_n = n/2 * (2a + (n-1) * d)
return n * (2 * a + (n - 1) * d) // 2
#Reeka
# Reeka