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.

A276384 Defined by the properties that it starts with 0, and when you successively apply DIFF, RUNS, BISECT, RUNS you get (4,1,3,1) repeated infinitely often.

This page as a plain text file.
%I A276384 #23 May 04 2017 08:42:28
%S A276384 0,1,3,5,7,9,11,12,14,16,18,20,22,23,25,27,29,31,33,34,36,38,40,42,44,
%T A276384 45,47,49,51,53,55,57,58,60,62,64,66,68,69,71,73,75,77,79,80,82,84,86,
%U A276384 88,90,91,93,95,97,99,101,103,104,106,108,110,112,114,115,117,119,121,123,125,126,128,130,132
%N A276384 Defined by the properties that it starts with 0, and when you successively apply DIFF, RUNS, BISECT, RUNS you get (4,1,3,1) repeated infinitely often.
%C A276384 Here DIFF means take first differences, RUNS means list successive run lengths, and BISECT means take alternate terms.
%C A276384 This agrees with the Beatty sequence for the tribonacci constant (A158919) for n <= 17160 but thereafter is different. In fact A158919(17161) = 31564, whereas a(17161) = 31563.
%C A276384 This arose in an attempt to find recurrences for A158919 and several related sequences. The moral is that without a proof, apparent recurrences are worthless.
%H A276384 N. J. A. Sloane, <a href="/A276384/b276384.txt">Table of n, a(n) for n = 0..40000</a>
%F A276384 For n >= 1, a(n) = A276385(n)-n.
%e A276384 Seq. 0, 1, 3, 5, 7, 9, 11, 12, 14, 16, 18, 20, 22, 23, 25, 27, 29, ...
%e A276384 DIFF 1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2 ...
%e A276384 RUNS 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 5, 1, 5, 1, 5, 1, 6, 1, 5, 1, ...
%e A276384 BISECT  5, 5, 5, 5, 6, 5, 5, 5, 6, 5, 5, 5, 5, 6, 5, 5, 5, 6, 5, 5, ...
%e A276384 RUNS 4, 1, 3, 1, 4, 1, 3, 1, 4, 1, 3, 1, 4, 1, 3, 1, 4, 1, 3, 1, 4, ...
%p A276384 with(transforms): r1:=[]:
%p A276384 for n from 1 to 1000 do r1:=[op(r1), 1,5,1,5,1,5,1,5,1,6,1,5,1,5,1,5,1,6]; od:
%p A276384 r2:=[]: for n from 1 to nops(r1) do if r1[n]=1 then r2:=[op(r2),1]; else for i from 1 to r1[n] do r2:=[op(r2),2]; od: fi: od:
%p A276384 r3:=[0,op(PSUM(r2))]:
%Y A276384 Cf. A158919, A276385.
%K A276384 nonn
%O A276384 0,3
%A A276384 _N. J. A. Sloane_, Sep 03 2016