login
A287399
Positions of 1 in A287397.
5
2, 5, 7, 10, 14, 17, 20, 23, 25, 29, 32, 34, 37, 41, 44, 47, 50, 52, 55, 59, 62, 65, 68, 70, 74, 77, 79, 82, 86, 89, 92, 95, 97, 101, 104, 106, 110, 113, 115, 118, 122, 125, 128, 131, 133, 137, 140, 142, 145, 149, 152, 155, 158, 160, 164, 167, 169, 172, 176
OFFSET
1,1
COMMENTS
a(n) - a(n-1) is in {2,3,4} for n >= 1; also, 3n - a(n) is in {1,2} for n >= 1. The first 20 numbers 3n - a(n) are 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2.
LINKS
MATHEMATICA
s = Nest[Flatten[# /. {0->{0, 1, 2}, 1->{2, 1, 0}, 2->{1, 0, 2}}] &, {0}, 9]; (*A287397*)
Flatten[Position[s, 0]]; (*A287398*)
Flatten[Position[s, 1]]; (*A287399*)
Flatten[Position[s, 2]]; (*A287400*)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 25 2017
STATUS
approved