Maximum Nim and Josephus Problem algorithm

Abstract

In this study, we study a Josephus problem algorithm. Let n,k be positive integers and gk(n) = nk-1 +1, where \ \ is a floor function. Suppose that there exists p such that gkp-1(0) < n(k-1) ≤ gkp(0), where gkp is the p-th functional power of gk. Then, the last number that remains is nk-h2kp(0) in the Josephus problem of n numbers, where every k-th numbers are removed. This algorithm is based on Maximum Nim with the rule function fk(n)= nk . Using the present article's result, we can build a new algorithm for Josephus problem.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…