login
A287522
Positions of 1 in A287520.
4
2, 4, 7, 10, 14, 16, 19, 22, 26, 28, 32, 34, 38, 40, 43, 46, 49, 53, 55, 59, 61, 64, 67, 71, 74, 76, 79, 82, 86, 88, 92, 94, 97, 100, 103, 107, 110, 112, 115, 118, 122, 124, 127, 130, 134, 136, 140, 142, 145, 148, 152, 155, 157, 160, 163, 167, 169, 173, 175
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, 2, 2, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 2, 2, 2, 1, 2, 1, with 1 in positions given by A287521.
LINKS
MATHEMATICA
s = Nest[Flatten[# /. {0->{0, 1, 2}, 1->{1, 0, 2}, 2->{1, 2, 0}}] &, {0}, 9]; (*A287520*)
Flatten[Position[s, 0]]; (*A287521*)
Flatten[Position[s, 1]]; (*A287522*)
Flatten[Position[s, 2]]; (*A189630*)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 30 2017
STATUS
approved