...

/

Exercise 3: Collatz Conjecture Using Recursion

Exercise 3: Collatz Conjecture Using Recursion

Calculate the sum of the digits of a number by using recursion.

Problem statement

Implement the recursive function to calculate the sequence of the Collatz Conjecture for a given number.

The Collatz Conjecture states that for any positive integer: ...