Maths & numbers

Josephus survivor position calculator

Find the last position left after repeatedly removing every kth person around a circle.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Find the last position left after repeatedly removing every kth person around a circle.

THE FORMULAJ(1)=0 and J(n)=(J(n−1)+k) mod n

A worked example

Seven people and step three leave person four.

Good to know

Positions start at one. Counting starts at person one.

Read the result

Find the last position left after repeatedly removing every kth person around a circle.

The primary result is labeled “Survivor position”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

Positions start at one. Counting starts at person one.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

Seven people and step three leave person four.

Which rule does this calculator apply?

J(1)=0 and J(n)=(J(n−1)+k) mod n

Find your calculator

Start typing to explore the library.