termos

Progressão \, geométrica\, de\, razão\, r\neq 0, \neq 1

u_1 = -2.3 (slider from -5 to 5, step 0.1)
r = 0.3 (slider from -5 to 5, step 0.1)
n = 1 (slider from 1 to 50, step 1)
u_n: u_1 * r^(n - 1.0)
A: (u_n, 0.0)
s: u_1 * (1.0 - r^(n)) / (1.0 - r)
texto3: "Soma dos primeiros n =" + n
texto2: "\displaystyle  S_n=  u_1\cdot  \frac{1-r^n}{1-r} =" + s
texto1: "u_n=u_1\cdot r^{n-1}=" + u_n