login
A287441
Positions of 2 in A287438.
3
3, 5, 7, 11, 13, 18, 19, 23, 27, 29, 31, 36, 37, 41, 45, 48, 50, 52, 55, 59, 63, 65, 67, 72, 75, 77, 79, 83, 85, 90, 91, 95, 99, 102, 104, 106, 109, 113, 117, 119, 121, 126, 129, 131, 133, 138, 140, 142, 146, 148, 153, 154, 158, 162, 163, 167, 171, 173, 175
OFFSET
1,1
COMMENTS
a(n) - a(n-1) is in {1, 2, 3, 4, 5} for n >= 1; also, 3n - a(n) is in {0, 1, 2} for n >= 1.
LINKS
FORMULA
a(n) + A287438(n) = 3n.
MATHEMATICA
s = Nest[Flatten[# /. {0->{0, 1, 2}, 1->{1, 2, 0}, 2->{2, 1, 0}}] &, {0}, 9]; (*A287438*)
Flatten[Position[s, 0]]; (*A189728*)
Flatten[Position[s, 1]]; (*A189670*)
Flatten[Position[s, 2]]; (*A287441*)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 26 2017
STATUS
approved