OFFSET
1,2
COMMENTS
A "mixed pair" is a pair of successive integers that add to an odd number.
By definition, the sequence has the repeated pattern oeeo (odd-even-even-odd integers) and starts with a(1) = 1. It is always extended with the smallest integer not leading to a contradiction.
Every natural number will appear in the sequence - but very slowly: the biggest integer after 200000 terms is still 18!
LINKS
Jean-Marc Falcoz, Table of n, a(n) for n = 1..10004
FORMULA
EXAMPLE
The "mixed pairs" in the sequence are between parentheses:
(1,2),(2,3),(3,2),(4,3),(3,4),(2,3),(5,4),(4,3),...
Replacing the content of the parentheses by their smallest term gives (1),(2),(2),(3),(3),(2),(4),(3),...
which is indeed the starting sequence.
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Eric Angelini and Jean-Marc Falcoz, Aug 26 2016
EXTENSIONS
Name edited by Peter Munn, Aug 12 2023
STATUS
approved