OFFSET
1,5
COMMENTS
a(n) is only defined where n is the sum of two nonnegative squares. a(n) = 0 is used in all cases where this is untrue.
Conjecture 1: bin #1 contains the orthogonal and 45-degree diagonal lattice edges.
Conjecture 2: After chessboard coloring the lattice, bin #3 contains only lattice edges that connect black and white points.
EXAMPLE
Let's find a(13). a(13) corresponds to the lattice edge connecting {0,0} to {3,2} because 3^2 = 2^2 = 13. to find a(13) we must know all previous values.
a(1), a(2), a(4), a(8) and a(9) are all in bin#1. a(5) and a(10) are both in bin#2. a(13) cannot be in bin#1 because the lattice edges a(1), a(8) and a(13) make a triangle. a(13) cannot be in bin#2 because a(5), a(10) and a(13) form a triangle. a(13) can go into bin#3. a(13) = 3.
Let's find a(32). It goes into bin#1 because no combination of previous lattice edges added to that bin form a triangle that includes the lattice edge corresponding with a(32). a(32) = 1.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gordon Hamilton, Mar 29 2025
STATUS
approved
