cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A361724 Lexicographically earliest sequence of distinct positive numbers on a square spiral such that the eight sums of each number with its eight nearest neighbors are distinct across the entire spiral and no number on the spiral equals any such sum.

Original entry on oeis.org

1, 2, 4, 7, 12, 14, 16, 22, 27, 10, 31, 40, 39, 46, 47, 20, 45, 52, 61, 60, 18, 80, 68, 81, 82, 70, 89, 94, 83, 48, 62, 105, 100, 69, 117, 25, 111, 129, 127, 124, 143, 106, 112, 132, 155, 119, 126, 128, 63, 56, 157, 158, 107, 178, 193, 168, 118, 170, 55, 195, 189, 197, 192, 206, 182, 211, 202
Offset: 1

Views

Author

Scott R. Shannon and Eric Angelini, Mar 22 2023

Keywords

Examples

			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