2024/04/09 by Shoei Takahashi, Takahashi, Shoei, Hikaru Manabe +3
Computer Science · #91A05 #91A46 #Combinatorics (math.CO) #Data Management and Algorithms #FOS: Mathematics #Graph Labeling and Dimension Problems #Graph Theory and Algorithms
paper · pdf · doi:10.48550/arxiv.2404.06112
openalex publication_date 2024/04/09 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28
In this study, we study a Josephus problem algorithm. Let n,k be positive integers and gk(n) = \lfloor (n)/(k-1) \rfloor +1, where \lfloor \rfloor 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)=\lfloor (n)/(k) \rfloor. Using the present article's result, we can build a new algorithm for Josephus problem.