A term in a geometric series is given by the equation Un = arn - 1, so the value of n is logr(Un/a) + logrr = logr(Un/a) + 1.
The other one you're thinking of is called an arithmetic series and the equation is Un = a + (n - 1)d, so (n - 1)d = -a, so n - 1 = -a/d, so n = (-a/d) + 1.
I think I've rearranged that correctly, it's easier on paper (so you might want to do it yourself to check; the equation a + (n - 1)d is right though).
There is no equation for the sum, in a general case. If you have a finite set of numbers, simply sum them. If you want the infinite/asymptotic sum, you'll have to check for convergence (which in this case is false, thus the sum would be infinity).