OFFSET
1,2
COMMENTS
This sequence is a variant of Ulam numbers (A002858).
There is only one pair of consecutive terms: a(2) = a(1) + 1 as for any n > 2, a(n)+1 belongs to the two Fibonacci-like sequences starting with (a(1), a(n)) and with (a(n), a(1)).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, C++ program
EXAMPLE
a(1) = 1 and a(2) = 2 by definition.
a(3) must be > 2 and belong to exactly one of the following sequences:
- 1, 2, 3, 5, 8, etc. (positive Fibonacci numbers),
- 2, 1, 3, 4, 7, etc. (Lucas numbers).
We take a(3) = 4.
PROG
(C++) // See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Nov 20 2024
STATUS
approved