There is a formula in wikipedia for the general case of josepus problem

Josephus Problem

But there is no reference for it, I don't know where it came from and I need too find out... Maybe Donald Knuth's Art of Programming?

  • 2
    $\begingroup$ I believe it comes from "Concrete Mathematics" $\endgroup$ – vonbrand Jan 23 '13 at 19:40

In "Concrete Mathematics" by Graham, Knuth, Patashnik. Look in Chapter 3: Integer functions.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.