A 4 2a 3 187. Sum of Natural Numbers Using Recursion. For a sequence a 1 a 2 a 3 a n.
Include int sumint n.
A 2 2a 1 121. An an-1 1 a1 1. N n-1 n-2. A recursive function can also be defined for a geometric sequence where the terms in the sequence have a common factor or common ratio between them.