164k views
2 votes
Give a recursive definition for the set Y of all positive multiples of 9. That is, Y = {9, 18, 27, 36, 45, 54, 63, 72, 81, 90, 99, ... }. Your definition should have a base case and a recursive part.

User Iamnotsam
by
8.0k points

1 Answer

5 votes

Recursion means defining something, such as a function, in terms of itself. So Y = {9, 18, 27, 36, 45, 54, 63, 72, 81, 90, 99, ... }

Let f (0) = 0

So f ( n + 1) = f (n) + 9

f (1) = f(0) + 9 = 0 +9 = 9

f (2) = f(1) + 9 = 9 +9 = 18

User Simonrjones
by
7.7k 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