English

Analytical Study and Efficient Evaluation of the Josephus Function

Numerical Analysis 2023-10-23 v2 Numerical Analysis

Abstract

A new approach to analyzing intrinsic properties of the Josephus function, JkJ_{_k}, is presented in this paper. The linear structure between extreme points of JkJ_{_k} is fully revealed, leading to the design of an efficient algorithm for evaluating Jk(n)J_{_k}(n). Algebraic expressions that describe how recursively compute extreme points, including fixed points, are derived. The existence of consecutive extreme and also fixed points for all k2k\geq 2 is proven as a consequence, which generalizes Knuth result for k=2k=2. Moreover, an extensive comparative numerical experiment is conducted to illustrate the performance of the proposed algorithm for evaluating the Josephus function compared to established algorithms. The results show that the proposed scheme is highly effective in computing Jk(n)J_{_k}(n) for large inputs.

Keywords

Cite

@article{arxiv.2303.15457,
  title  = {Analytical Study and Efficient Evaluation of the Josephus Function},
  author = {Yunier Bello-Cruz and Roy Quintero-Contreras},
  journal= {arXiv preprint arXiv:2303.15457},
  year   = {2023}
}
R2 v1 2026-06-28T09:36:24.273Z