such that Nm is the smallest factor that hasn’t appeared in the sequence in the sum of all numbers from N1 to Nm-1 or, if there is no unique factor, Nm is 1