The formula for an arithmetic series is $S_n=\dfrac{n}{2}[2a+(n-1)d]$. With $n\in\mathbb{Z}^{+}$. $a$ is the first term of the sequence and $d$ is the common ratio.
My question is does this formula work if both $a, d\in\mathbb{R}$, or do they have to be integers?