# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a287387 Showing 1-1 of 1 %I A287387 #4 May 25 2017 13:15:05 %S A287387 2,5,9,12,14,17,20,24,26,29,33,35,39,41,44,47,50,54,56,59,63,65,69,71, %T A287387 75,77,80,83,86,90,92,96,98,102,104,107,110,114,116,120,122,125,128, %U A287387 131,135,137,140,144,147,149,152,155,159,161,164,167,171,174,176 %N A287387 Positions of 1 in A287385. %C A287387 a(n) - a(n-1) is in {2,3,4} for n >= 1; also, 3n - a(n) is in {0,1} for n >= 1. The first 20 numbers 3n - a(n) are 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, with 0 in positions given by A287388. %H A287387 Clark Kimberling, Table of n, a(n) for n = 1..10000 %t A287387 s = Nest[Flatten[# /. {0->{0, 1, 2}, 1->{2, 1, 0}, 2->{0, 2, 1}}] &, {0}, 9]; (*A287385*) %t A287387 Flatten[Position[s, 0]]; (*A287386*) %t A287387 Flatten[Position[s, 1]]; (*A287387*) %t A287387 Flatten[Position[s, 2]]; (*A287388*) %Y A287387 Cf. A287385, A287386, A287388. %K A287387 nonn,easy %O A287387 1,1 %A A287387 _Clark Kimberling_, May 25 2017 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE