The 3n+1 Problem

The 3n+1 Problem

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...

Zonal Computing Olympiad 2018 Solutions-I

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...