Finite Geometric Series Formula

We know that:

a = first term
r = common ratio
n = number of terms

We'r going to use a notation Sn to denote the sum of first n terms as following:

Sn= sum of first n terms

Sn=a+ar+ar2++arn1

We want to come up with a nice clean formula for evaluating this and we're gonna use a little trick to do it.

Let's just multiple negative r on both sides of equation as following:

rSn=arar2arn1arn

So:

SnrSn=aarn

Sn(1r)=a(1rn)

Sn=a(1rn)1r

Comments

Popular posts from this blog

BdsDex: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-OABE-20A5-E582" from PciRoot(0x0)/Pci (0x2, 0x0)/Stat(0x0,0xFFFF,0x0) : Not Found

Install Shadowsocks-libev as Client on Debian Linux

Install Debian(11.1.0) Linux VM on FreeBSD(13.0) with grub2-bhyve and ZFS without GUI