7=\frac{1-q^3}{(1-q)^3}=\frac{1+q+q^2}{1-2q+q^2}