A202024 Lexicographically earliest positive integer sequence such that no sum of any number of consecutive terms is an integer of the form k^2+k+1 for any positive integer k.
1, 1, 4, 4, 1, 1, 4, 4, 6, 2, 2, 4, 2, 2, 2, 6, 2, 2, 2, 4, 4, 2, 2, 2, 4, 2, 4, 2, 2, 2, 4, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2
Offset: 1
Keywords
Examples
Integers of the form k^2+k+1 for positive integer k are {3,7,13,21,...}. Assume that a(1)-a(3) have been determined as {1,1,4}. Then a(4)=1 gives consecutive terms 1,1,4,1 summing to 7, which is prohibited; a(4)=2 gives 1+4+2=7; a(4)=3 gives 4+3=7; but a(4)=4 is OK, giving no sum of consecutive terms equaling 3,7,13,... Thus a(4)=4.
Crossrefs
Cf. A168677.
Comments