Mollethewizard
IS-IT--Management
I suppose all of us that read this forum are working people with working problems. Sometimes I for one just want to play with something and solve a problem that’s not work related, so just for the fun of it….
If you take a number lets say 3 and you divide it by 2 and multiply by 3 and add 1 if the result of the division is not even you end up by 1.
You divide it by 2 the result 1.5 is not an even number.
We multiply 3 by 3 and add 1 the result 10 we divide by 2 (5) and then again by 2 (2.5) – not an even number. We multiply 5 by 3 and add 1 (16) divide by 2 (8) divide by 2 (4) divide by 2 (2) divide by 2 (2) divide by 2 and ends up with 1 in 8 stages!
How do you write code in Excel to present the original number 3 in cell A1 and the flow of numbers by the calculations (3, 10, 5, 16, 8, 4, 2, 1) in column B starting from cell B1?
A good number to test with is 253 it gives a fairly long follow of operations!
Mollethewizard
If you take a number lets say 3 and you divide it by 2 and multiply by 3 and add 1 if the result of the division is not even you end up by 1.
You divide it by 2 the result 1.5 is not an even number.
We multiply 3 by 3 and add 1 the result 10 we divide by 2 (5) and then again by 2 (2.5) – not an even number. We multiply 5 by 3 and add 1 (16) divide by 2 (8) divide by 2 (4) divide by 2 (2) divide by 2 (2) divide by 2 and ends up with 1 in 8 stages!
How do you write code in Excel to present the original number 3 in cell A1 and the flow of numbers by the calculations (3, 10, 5, 16, 8, 4, 2, 1) in column B starting from cell B1?
A good number to test with is 253 it gives a fairly long follow of operations!
Mollethewizard