1: \begin{thebibliography}{1}\footnotesize
2: \bibitem{lesson} M. H. Albert, R. J. Nowakowski, and D. Wolfe, {\it Lessons In Play: An Introduction to Combinatorial Game Theory, Second Edition}, A K Peters/CRC Press, Natick, MA., United States, 2019.
3: \bibitem{computerscience} R. L. Graham, D. E. Knuth, and O. Patashnik, {\it Concrete Mathematics: A Foundation for Computer Science}, Addison Wesley, 1989.
4: \bibitem{levinenim} L. Levine, Fractal sequences and restricted nim, {\it Ars Combin.} {\bf 80} (2006), 113--127.
5: \bibitem{thaij2023b} R. Miyadera, S. Kannan, and H. Manabe, Maximum nim and chocolate bar games, {\it Thai J. Math.}, {\bf 21} (4) (2023), 733--749.
6: \bibitem{integer2023} R. Miyadera and H. Manabe, Restricted Nim with a Pass, {\it Integers } {\bf 23} (2023), $\#$G3.
7: \bibitem{integer2024} S.Takahashi, R. Miyadera and H. Manabe, Maximum Nim and the Josephus Problem, {\it Integers } {\bf 24} (2024), $\#$G3 to appear.
8: \bibitem{knuth} Donald E. Knuth. The Art of Computer Programming. Volume III. Searching
9: and Sorting. The Art of Computer Programming. Addison-Wesley, 1973.
10: \bibitem{O(nlogm)} Errol L Lloyd. An O(n log m) algorithm for the Josephus Problem. Journal of Algorithms, Vol. 4, No. 3, pp. 262–270, 1983.
11: % \bibitem{sullivan} Shaun Sullivan and Thomas Beatty. Structured shuffles and the Josephus problem. Open Journal of Discrete Mathematics, Vol. 2, No. 4, pp. 138–141, 2012
12: \bibitem{josephusalgorithm} Algorithms for Competitive Programming
13: \url{https://cp-algorithms.com/others/josephus_problem.html}
14: \end{thebibliography}
15: