OFFSET
0,3
COMMENTS
Other than a(0) = 0, the sequence misses all multiples of 3. Does it eventually hit all positive non-multiples of 3?
LINKS
Nick Hobson, Table of n, a(n) for n = 0..10000
Nick Hobson, Python program
EXAMPLE
Consider n = 3. We have a(3) = 2 and try to divide by 2. The result, 1, is certainly an integer, but we cannot use it because 1 is already in the sequence. So we must multiply by 3 and add 1 instead, getting a(4) = 3*2 + 1 = 7.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Nick Hobson, Feb 27 2007
STATUS
approved