a(n) = m if m has already occurred at least once and n=k+i*(m+1) where k is the index of the first occurrence of n and i=1,...,max(n-1,1), otherwise a(n) = least positive integer that has not yet occurred.

A094173

a(n) = m if m has already occurred at least once and n=k+i*(m+1) where k is the index of the first occurrence of n and i=1,...,max(n-1,1), otherwise a(n) = least positive integer that has not yet occurred.

Terms

    a(0) =1a(1) =2a(2) =1a(3) =3a(4) =2a(5) =4a(6) =5a(7) =3a(8) =6a(9) =7a(10) =4a(11) =3a(12) =5a(13) =8a(14) =9

External references