How it works: you choose a number of people, starting with the first person being spared, One person is spared, the person to their left is eliminated, the person to their left is spared, repeat this until 1 person is left. Note: people who are already out are skipped press h to toggle between visuals w/ slow calculation and lists w/ a bit faster calculation The Max number of people for visuals is fifty, but the max for lists is 1,000 If you want to compute bigger numbers, use: https://turbowarp.org/624429516?turbo
all code by me The original idea came from Flavius Josephus I think thanks for clicking on the project If anybody knows how one might make the guys shuffle closer and get bigger as the number of people decreases that'd be nice