A367467 Lexicographically earliest infinite sequence of positive integers such that a(n + a(n)) is distinct for all n.
1, 1, 2, 2, 3, 4, 2, 5, 6, 7, 1, 8, 9, 2, 10, 11, 12, 1, 13, 14, 2, 15, 16, 2, 17, 18, 19, 2, 20, 21, 2, 22, 23, 24, 1, 25, 26, 2, 27, 28, 2, 29, 30, 31, 2, 32, 33, 2, 34, 35, 36, 1, 37, 38, 2, 39, 40, 41, 1, 42, 43, 2, 44, 45, 2, 46, 47, 48, 1, 49, 50, 2, 51, 52, 53, 1, 54, 55, 2, 56, 57, 2, 58, 59, 60, 2, 61, 62, 2
Offset: 1
Keywords
Examples
Initial locations and the (by definition) distinct terms that they reach: n| 1 2 3 4 5 6 7 8 9 a(n)| 1 1 2 2 3 4 2 5 6 =>1=>2====>3 ====>4 =======>5 ====>6 When we evaluate a(i+a(i)) with each index i, we get a distinct value. When i=1, for example, a(1+a(1))=a(1+1)=a(2)=1; no other i gives 1 as the solution to a(i+a(i)). When i=4, a(4+a(4))=a(4+2)=a(6)=4, and 4 is likewise a solution unique to i=4.
Links
- Neal Gersh Tolunsky, Table of n, a(n) for n = 1..1000
Crossrefs
Programs
-
MATLAB
function a = A367467( max_n ) a = [1 1:2*max_n]; for n = 3:max_n a(n) = 1; while consistency(a, n) == false a(n) = a(n)+1; end end a = a(1:max_n); end function ok = consistency(a, n) v = a([1:n] + a(1:n)); ok = (n == length(unique(v))); end % Thomas Scheuerle, Nov 21 2023
Formula
From Thomas Scheuerle, Nov 26 2023: (Start)
Conjectures:
Comments