OFFSET
1,2
COMMENTS
See Corneth's algorithm in A378505 for finding the terms of this sequence.
MATHEMATICA
A379013nxt[z_] := If[z == 0, 3, SelectFirst[Divisors[z*(z+1)], # > z+1 && Divisible[#*(#-1)/2 - z*(z+1)/2, #] &]];
NestList[A379013nxt, 0, 50]
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo Xausa and David A. Corneth, Dec 13 2024
STATUS
approved