479,263 views
12 votes
12 votes
Question 14 : Start an even number and divide it by 2 until you reach an odd number or 1 , if it is an odd number different than 1, multiply it by 3 and add 1 and start the process of dividing by 2. Do not give the answers : 1 or None for points on this study guide Good Luck

User Jayraynet
by
3.2k points

1 Answer

12 votes
12 votes

Start with an even number.

Let's start with 10 (10 is even)

Divide it by 2 until you reach an odd number or 1

10/2 = 5 (5 is odd)

If it is an odd number different than 1, multiply it by 3 and add 1

Yes 5 is odd and different than 1

5*3 + 1 = 15 + 1 = 16

Start the process of dividing by 2

16/2 = 8

8/2 = 4

4/2 = 2

2/2 = 1

So we ended up with 1

This problem seems to be a Collatz conjecture.

User Jevgenij
by
3.0k points