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!