User blog comment:Vel!/Ordinal BEAF/@comment-5150073-20130315133136/@comment-5150073-20130315152535

When the number of addings 1 reaches X, it automatically converts into X, and then we go through X+1, X+2, X+3, ..., up to 2X. So, if the prime is 5, we have sequence: 1, 2, 3, 4, X, X+1, X+2, X+3, X+4, 2X.