I'm trying to figure out how to put (the solution to) the Josephus Problem into either an equation of a function of some sort.
I'm starting Algebra II/10th grade, so although I understand functions I lose track of everything when logs and floors become involved. I'd appreciate if you could please keep answers within my level of knowledge.
I've read and re-read the wiki article. I undertsna everything up to and including the sentence "This suggests that f(n) is an increasing odd sequence that restarts with f(n) = 1 whenever the index n is a power of 2". When the variables m and l become involved - I no longer understand - what do they even stand for?
Any help is welcome, please and thank you!