0

Look at my Collatz Conjecture. What did I forget or did I do wrong?

The collatz conjecture states that every time a number goes through it, it ends up at one into the 1-4-2-1 loop. When been dealing with an even number, divide by 2. When dealing with an odd number, multiply by three and add one. For example: 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1. This code tells you how much steps a number y takes before getting to one.

9th Jun 2017, 10:11 AM
Jeftakels
1 Antwort
0
And the question is?
9th Jun 2017, 11:34 AM
Bogdan Sass
Bogdan Sass - avatar