login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A287421 Positions of 2 in A287418. 5

%I #4 May 26 2017 16:43:45

%S 3,5,9,11,15,18,20,24,27,29,33,36,38,42,45,48,50,54,56,60,63,66,68,72,

%T 74,78,81,83,87,90,92,96,99,102,104,108,110,114,117,120,122,126,128,

%U 132,135,138,140,144,146,150,153,155,159,162,164,168,171,173,177

%N Positions of 2 in A287418.

%C 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 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, with 1 in positions given by A287420.

%H Clark Kimberling, <a href="/A287421/b287421.txt">Table of n, a(n) for n = 1..10000</a>

%t s = Nest[Flatten[# /. {0->{0, 1, 2}, 1->{1, 2, 0}, 2->{1, 0, 2}}] &, {0}, 9]; (*A287418*)

%t Flatten[Position[s, 0]]; (*A287419*)

%t Flatten[Position[s, 1]]; (*A287420*)

%t Flatten[Position[s, 2]]; (*A287421*)

%Y Cf. A287418, A287419, A287421.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, May 26 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)