ARITMETICKÁ POSLOUPNOST

ai = a1 + (i - 1) * d

Zadejte:
a1 (první člen posloupnosti)
d (diference)
n (počet členů)