OFFSET
1,2
LINKS
Scott R. Shannon, Image of the first 50000 terms. The green line is a(n) = n.
Scott R. Shannon, Image of the first 50000 terms on the square spiral. The numbers are spread across the spectrum from red to violet to show their relative size. Zoom in to see the numbers.
Scott R. Shannon, Image of the first 200000 terms.
EXAMPLE
a(3) = 4 as a(1) + a(2) = 1 + 2 = 3, so a(3) cannot 1,2 or 3. a(3) has a(1) = 1 and a(2) = 2 as neighbors which form sums 4 + 1 = 5 and 4 + 2 = 6 neither of which have appeared, so 4 can be chosen.
a(5) = 12 as the numbers already used are 1,2,4,7, which form the sums 3,5,8,6,9,11 with their nearest neighbors. The lowest free number is therefore 10, but a(5) has a(1) = 1 as a neighbor and would create the sum 10 + 1 = 11 which has already appeared as a sum. The next free number is 12 which forms sums 12 + 7 = 19 and 12 + 1 = 13 which have not appeared, so 12 can be chosen.
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Scott R. Shannon and Eric Angelini, Mar 22 2023
STATUS
approved