cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A287162 Positions of 1 in A287160.

This page as a plain text file.
%I A287162 #4 May 22 2017 12:23:54
%S A287162 3,5,6,9,10,12,16,18,19,21,25,26,30,33,35,36,39,40,42,46,47,51,54,56,
%T A287162 57,59,63,66,68,69,73,75,76,79,80,82,86,88,89,91,95,96,100,103,105,
%U A287162 106,108,112,115,117,118,122,124,125,128,129,131,135,136,140,143
%N A287162 Positions of 1 in A287160.
%H A287162 Clark Kimberling, <a href="/A287162/b287162.txt">Table of n, a(n) for n = 1..10000</a>
%t A287162 s = Nest[Flatten[# /. {0 -> {1, 0}, 1 -> {2, 1}, 2 -> 0}] &, {0}, 9] (* A287160 *)
%t A287162 Flatten[Position[s, 0]] (* A287161 *)
%t A287162 Flatten[Position[s, 1]] (* A287162 *)
%t A287162 Flatten[Position[s, 2]] (* A287163 *)
%Y A287162 Cf. A287160, A287161, A287163.
%K A287162 nonn,easy
%O A287162 1,1
%A A287162 _Clark Kimberling_, May 22 2017