Inspiration

We love solving problems and it's good to "fry" our brains to have the feelling of accomplishment at the end!

What it does

Input a number (of people in the circle) and it will give you the last one remaining when excluding every second person in the circle

How we built it

using paper, notepad, testing in python and C#

Challenges we ran into

Finding out the operations we should use the reach a comon result. i.e, if necessary to use square root, power.. variable power? logarithm, ceiling.. floor

Accomplishments that we're proud of

reaching the final solution (together, with discussion) without reseaching anything (at all) about the problem

What we learned

We confirmed that thinking together is better than thinking alone

What's next for CircleOfPeople - A-Thinking-Ape

N/A

GENERIC FORMULA: remainder = ((n - (2 ^ floor (log_2 n)))*2) + 1

The try it out url takes you to the python script

Built With

Share this project:

Updates