Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

The Josephus Problem

Name: Anonymous 2012-09-17 22:09

Flavius Josephus was a roman historian of Jewish origin. During the Jewish-Roman wars of the first century AD, he was in a cave with fellow soldiers, 40 men in all, surrounded by enemy Roman troops. They decided to commit suicide by standing in a ring and counting off each third man. Each man so designated was to commit suicide...Josephus, not wanting to die, managed to place himself in the position of the last survivor.

In the general version of the problem, there are n soldiers numbered from 1 to n and each k-th soldier will be eliminated. The count starts from the first soldier. What is the number of the last survivor?

Name: Anonymous 2012-09-17 22:36

brain fart on >>4

Name: Anonymous 2012-09-18 10:53

http://mathworld.wolfram.com/JosephusProblem.html
I bet every one of you stopped reading at ``Jewish''

Name: Anonymous 2012-09-18 10:56

>>1
Read the first chapter of Concrete Mathematics.

Name: Anonymous 2012-09-18 11:32

>>1
Libeltarians will sue you for defamation

Name: Anonymous 2012-09-18 12:29

Die in a fire, antijew fucktard.

Name: Anonymous 2012-09-18 17:18

>>6
This problem is a legitimate /prog/ material. I'd let it stay until it becomes off topic.

Don't change these.
Name: Email:
Entire Thread Thread List