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.
1, 2, 1, 3, 2, 4, 5, 3, 6, 7, 4, 3, 5, 8, 9
Offset: 1
Extensions
Edited by Herman Jamke (hermanjamke(AT)fastmail.fm), May 01 2008
Comments