This problem is known as Collatz Conjecture. Consider the following operation on an arbitrary positive integer: If the number is even, divide it by two.If the number is odd, triple it and add one. The conjecture is that no matter what value of the starting number, the...

Problem 1: BIRTHDAY-CAKES Before going to the solution/hints, it’s always good if you re-read ( assuming you’ve already encountered the problem ) the problem statement once. And if you aren’t aware of the problem statement, then it’s only...

Problem 1 : BIRTHDAY-CAKES In a birthday party, there are C cakes and N children. There is also an integer k, given. But since eating too much of cakes can give you toothache, each of the children...