OFFSET
0,1
COMMENTS
Conjecture: a(n) > 0.
Note that some terms are unexpectedly large, for example a(1059) = 62573802.
MATHEMATICA
a[n_] := Module[{x, k = 1}, x[1] = 1; x[j_] := x[j] = Mod[x[j - 1] + j - 1, n + j - 1]; While[x[k] != 0, k++]; k]; Array[a, 63, 0] (* Amiram Eldar, Oct 29 2021 *)
PROG
(Python)
for n in range(1060):
i = x = 1
while x:
x = (x+i) % (n+i)
i += 1
print(i, end=', ')
(PARI) a(n) = my(x=1, i=1); while(x, x = (x+i) % (n+i); i++); i; \\ Michel Marcus, Oct 29 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Oct 28 2021
STATUS
approved