login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Positions of 1 in A287556.
5

%I #4 May 31 2017 16:14:31

%S 2,5,11,16,17,23,28,30,36,38,41,47,51,56,58,61,65,71,76,78,84,86,89,

%T 95,99,104,106,109,114,117,123,128,131,136,138,141,146,149,155,160,

%U 161,167,172,174,180,182,185,191,196,198,201,207,211,216,218,221,226

%N Positions of 1 in A287556.

%C a(n) - a(n-1) is in {1,2,3,4,5,6,7} for n >= 1; also, 4n - a(n) is in {0,1,2,3} for n >= 1. The first 20 numbers 4n - a(n) are 2, 3, 1, 0, 3, 1, 0, 2, 0, 2, 3, 1, 1, 0, 2, 3, 3, 1, 0, 2, with

%C 0 in positions given by A287559,

%C 1 in positions given by A287560,

%C 2 in positions given by A287557,

%C 3 in positions given by A287558.

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

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

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

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

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

%t Flatten[Position[s, 3]]; (* A287560 *)

%Y Cf. A287556, A287557, A287559, A287560.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, May 31 2017