Evaluate for the nth term of a sequence given the ratio and first term in a geometric