A new approach to analyzing intrinsic properties of the Josephus function, , is presented in this paper. The linear structure between extreme points of is fully revealed, leading to the design of an efficient algorithm for evaluating . 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 is proven as a consequence, which generalizes Knuth result for . 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 for large inputs.

生成讲解博客的中文版本

生成AI智能校验的中文版本