OFFSET
1,2
LINKS
Eric Huang, Tanya Khovanova, Timur Kilybayev, Ryan Li, Brandon Ni, Leone Seidel, Samarth Sharma, Nathan Sheffield, Vivek Varanasi, Alice Yin, Boya Yun, and William Zelevinsky, Card Dealing Math, arXiv:2509.11395 [math.NT], 2025. See pp. 17, 39.
EXAMPLE
Consider 4 people in a circle. Initially, person number 1 is skipped, and person 2 is eliminated. The remaining people are now in order 3, 4, 1. Then, two people are skipped, and person 1 is eliminated, implying that the order of elimination of the first person is 2: a(4) = 2.
PROG
(Python)
def a(n):
i, J, out, c = 0, list(range(1, n+1)), [], 1
while len(J) > 1:
i = (i + c)%len(J)
q = J.pop(i)
if q == 1:
return c
c += 1
return c
print([a(n) for n in range(1, 81)]) # Michael S. Branicky, Oct 13 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Tanya Khovanova, Nathan Sheffield, and the MIT PRIMES STEP junior group, Jul 27 2025
STATUS
approved
