OFFSET
1,2
COMMENTS
We start with two sequences A and B. Here sequences A and B are both taken to be 1,2,3,4,5,6,7,....
We start with the first term of sequence A (which is 1).
To extend the sequence, we first try to subtract the next term of A from the current term, but that is allowed only if the result is a positive number not already in the sequence.
If that fails, we next try to subtract the next term of B from the current term, but again that is allowed only if the result is a positive number not already in the sequence.
If that fails, we next try to add the next term of A to the current term, but again that is allowed only if the result is a positive number not already in the sequence.
Finally, if that fails, we add the next term of B to the current term (this may produce repeated terms, but that is allowed at this step).
CROSSREFS
KEYWORD
nonn
AUTHOR
Rodolfo Kurchan, Apr 08 2010
EXTENSIONS
Corrected and extended by D. S. McNeil, May 09 2010
STATUS
approved