login
A287517
Positions of 0 in A287516.
4
1, 5, 7, 11, 13, 16, 19, 22, 26, 29, 31, 34, 37, 41, 43, 46, 49, 53, 55, 59, 61, 64, 67, 71, 74, 76, 79, 83, 85, 88, 91, 95, 97, 100, 103, 107, 109, 113, 115, 119, 121, 124, 127, 130, 134, 136, 140, 142, 145, 148, 152, 155, 157, 160, 163, 167, 169, 173, 175
OFFSET
1,2
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 2, 1, 2, 1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 1, with 1 in positions given by A287518.
LINKS
MATHEMATICA
s = Nest[Flatten[# /. {0->{0, 1, 2}, 1->{1, 0, 2}, 2->{0, 2, 1}}] &, {0}, 9]; (*A287516*)
Flatten[Position[s, 0]]; (*A287517*)
Flatten[Position[s, 1]]; (*A287518*)
Flatten[Position[s, 2]]; (*A189630*)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 30 2017
STATUS
approved