asked 215k views
4 votes
Write a recursive version of function f(n) = 3 * n i.e. multiples of 3

1 Answer

5 votes
f(n+1) - f(n) = 3(n+1) - 3n = 3n + 3 - 3n = 3;
The recursive version is f(n+1) = f(n) + 3;
answered
User Jeremy Jones
by
8.9k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.