OFFSET
1,3
COMMENTS
Starting with a(15), this sequence enters a twelve term loop: 2, 1, 3, 2, 1, 3, 2, 1, 4, 2, 1, 4.
LINKS
Peter Kagey, Table of n, a(n) for n = 1..1000
FORMULA
a(k + 12 * i) = a(k) for k >= 15.
EXAMPLE
a(4) = 2 which means that a(4+2) = a(6) != 1 = a(4-2) (because a(4) >= 2).
a(5) = 3 which means that a(5+1) = a(6) != 2 = a(5-1) (because a(5) >= 1).
Therefore a(6) = 3.
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey and Alec Jones, Mar 28 2017
STATUS
approved