This sequence is analogous to the smallest prime factor of n. If n is a member of A000960, a(n) = 0, otherwise a(n) = the (k+1)-st step that rejects n from Flavius Josephus' sieve.

The n-values of records of this sequence are given by A100287 (see 2004 comment by Sloane).