A117548 Values of n for which there exist d(1),...,d(n), each in {0,1,2} and an r in {1,2} such that Sum_{i=1..n-k} d(i)*d(i+k) == r (mod 3) for all k=0..n-1. (Such a sequence is called a very(3,r) sequence. See the link.).
1, 2, 5, 6, 7, 12, 14, 17, 20, 24
Offset: 1
Examples
For the sequence d=112102 we get Sum_{i=1..n-k} d(i)*d(i+k) = {11,5,5,5,2,2} = {2,2,2,2,2,2} (mod 3) for k=0..5, so 6 is a term of the sequence.
Links
- John W. Layman, On A Generalization of Very Odd Sequences
Comments