paper

Maximum Nim and Josephus Problem algorithm

arXiv:2404.06112

Abstract

In this study, we study a Josephus problem algorithm. Let be positive integers and , where is a floor function. Suppose that there exists such that , where is the -th functional power of . Then, the last number that remains is in the Josephus problem of numbers, where every -th numbers are removed. This algorithm is based on Maximum Nim with the rule function . Using the present article's result, we can build a new algorithm for Josephus problem.

arXiv admin note: substantial text overlap with arXiv:2403.19308