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;
User Jeremy Jones
by
8.9k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories