login
A287450
Positions of 2 in A287447.
4
3, 4, 9, 12, 15, 16, 19, 24, 27, 28, 33, 36, 39, 40, 45, 48, 51, 52, 57, 60, 61, 66, 67, 72, 73, 78, 81, 84, 87, 88, 93, 94, 99, 100, 105, 108, 111, 112, 117, 120, 123, 124, 127, 132, 135, 136, 141, 144, 147, 148, 153, 156, 159, 160, 163, 168, 171, 174, 175
OFFSET
1,1
COMMENTS
a(n) - a(n-1) is in {1, 3, 5} for n >= 1; also, 3n - a(n) is in {0, 2} for n >= 1. The first 20 numbers 3n - a(n) are 0, 2, 0, 0, 0, 2, 2, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, with 2 in positions given by A287449.
LINKS
MATHEMATICA
s = Nest[Flatten[# /. {0->{0, 1, 2}, 1->{2, 0, 1}, 2->{1, 0, 2}}] &, {0}, 9]; (*A287447*)
Flatten[Position[s, 0]]; (*A189724*)
Flatten[Position[s, 1]]; (*A287449*)
Flatten[Position[s, 2]]; (*A287450*)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 30 2017
STATUS
approved