My son came from school today with a math challenge. I saw (and think understood) the mathematical solution. So I thought, this could be also possibly solved within Alteryx.
So here is the challenge:
It is the birthday of the king and therefore he will release some prisoners. The king has 1000 prisoners, everyone in a single cell.
He advised his guard to:
- go 1000 times along the cells
- in the first round the guard has to go to every cell, in the second round to every second cell, in the third round to every third cell and so on
- every time the guard comes to a cell, he has to turn the key (so lock or unlock the door)
- at the start all cells were locked
How many prisoners will be released after 1000 rounds?
Any ideas? - Have fun!
Solved! Go to Solution.
Cool challenge! Very tricky. I came up with 31 unlocked cells. Pretty cool in Alteryx, to see the grid of actual lock toggles in partial results along the way.
@JohnJPS: very good - very impressive solution!
This was fun! I also got the answer of 31.
@DataBlender: 2 additional great solutions - thanks for sharing!
Hi @ulrich_schumann,
https://community.alteryx.com/t5/Data-Preparation-Blending/Challenge-5th-grade-math/m-p/3920#M596
A fun challenge for perfect squares like us 🤓
@MarqueeCrew: thanks for the hint: soo many more solutions that fit to the challenge :-)
I am really amazed of the possibilities of Alteryx to come to a solution!
Wow, you can do it in one tool!
That's awesome - should've spotted the pattern in my other solution. Yeah, knowing which numbers contribute makes for a trivial one-tool approach.
The one tool approach was NOT in my expectation as I was looking for a way to come to a solution without the mathematical background. So very happy with the provided solutions. The various solutions are giving me very good inside for other (business related) questions.
So thanks a lot for all your contribution.