Counting elements of a recursively defined set

A set SS of integers is defined recursively. Base case: 5∈S5 \in S. Recursive step: if x∈Sx \in S, then x+3∈Sx + 3 \in S. Exclusion rule: an integer is in SS only if it can be obtained from the base case by finitely many applications of the recursive step. How many elements of SS are less than 100? Give your answer as a whole number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Recursive Definitions Questions: