A369422 Lexicographically earliest infinite sequence such that no two equal unordered pairs (a(j), a(k)) have the same distance abs(j-k).
1, 1, 2, 3, 4, 2, 5, 6, 3, 7, 8, 4, 9, 10, 11, 5, 12, 13, 6, 14, 15, 16, 7, 17, 18, 8, 19, 20, 21, 9, 22, 23, 10, 24, 25, 11, 26, 27, 28, 12, 29, 30, 13, 31, 32, 33, 14, 34, 35, 15, 36, 37, 16, 38, 39, 40, 17, 41, 42, 18, 43, 44, 45, 19, 46, 47, 20, 48, 49, 21, 50, 51, 52, 22, 53, 54, 23, 55, 56, 57, 24, 58, 59, 25, 60, 61
Offset: 1
Keywords
Examples
a(7)=5: We cannot have a(7)=1 because then, for example, the unordered pair (1,2) would have the same absolute distance twice at distinct indices: 1, 1, 2, 3, 4, 2, 1 1--2 2--1 a(7) could not equal 2 because again the pair (1,2) would have the same absolute distance twice at different indices (i=6-1=5 and i=7-2=5): 1, 1, 2, 3, 4, 2, 2 1--------------2 1--------------2 a(7) cannot be 3 because of the following two equal unordered pairs, which would have the same distance: 1, 1, 2, 3, 4, 2, 3 2--3 2--3 a(7) cannot be 4, or we would have two equal unordered pairs both with distance 1: 1, 1, 2, 3, 4, 2, 4 4--2 2--4 a(7) can be 5 without restriction since 5 is a first occurrence and every unordered pair with 5 has a distinct distance.
Comments