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.

A187184 Parse the infinite string 0123450123450123450... into distinct phrases 0, 1, 2, 3, 4, 5, 01, 23, 45, 012, 34, ...; a(n) = length of n-th phrase.

This page as a plain text file.
%I A187184 #11 Jan 31 2020 16:06:27
%S A187184 1,1,1,1,1,1,2,2,2,3,2,2,2,3,4,3,3,4,3,3,4,5,4,4,4,5,5,5,5,5,6,7,6,7,
%T A187184 6,7,6,7,6,7,6,7,8,8,8,9,8,8,8,9,10,9,9,10,9,9,10,11,10,10,10,11,11,
%U A187184 11,11,11,12,13,12,13,12,13,12,13,12,13,12,13,14,14,14,15,14,14,14,15,16,15,15,16,15,15,16,17,16,16,16,17,17,17,17,17,18,19,18,19,18,19,18,19,18,19,18,19,20,20,20,21,20,20
%N A187184 Parse the infinite string 0123450123450123450... into distinct phrases 0, 1, 2, 3, 4, 5, 01, 23, 45, 012, 34, ...; a(n) = length of n-th phrase.
%C A187184 See A187180 for details.
%H A187184 Ray Chandler, <a href="/A187184/b187184.txt">Table of n, a(n) for n = 1..1000</a>
%H A187184 <a href="/index/Rec#order_37">Index entries for linear recurrences with constant coefficients</a>, signature (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1).
%F A187184 After the initial block of six 1's, the sequence is quasi-periodic with period 36, increasing by 6 after each block.
%F A187184 From _Colin Barker_, Jan 31 2020: (Start)
%F A187184 G.f.: x*(1 + x^6 + x^9 - x^10 + x^13 + x^14 - x^15 + x^17 - x^18 + x^20 + x^21 - x^22 + x^25 + x^30 + x^31 - x^32 + x^33 - x^34 + x^35 - 2*x^36 + x^37 - x^38 + x^39 - x^40 + x^41) / ((1 - x)^2*(1 + x)*(1 - x + x^2)*(1 + x^2)*(1 + x + x^2)*(1 - x^2 + x^4)*(1 - x^3 + x^6)*(1 + x^3 + x^6)*(1 - x^6 + x^12)).
%F A187184 a(n) = a(n-1) + a(n-36) - a(n-37) for n>42.
%F A187184 (End)
%t A187184 Join[{1, 1, 1, 1, 1},LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1},{1, 2, 2, 2, 3, 2, 2, 2, 3, 4, 3, 3, 4, 3, 3, 4, 5, 4, 4, 4, 5, 5, 5, 5, 5, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7, 6, 7},115]] (* _Ray Chandler_, Aug 26 2015 *)
%o A187184 (PARI) Vec(x*(1 + x^6 + x^9 - x^10 + x^13 + x^14 - x^15 + x^17 - x^18 + x^20 + x^21 - x^22 + x^25 + x^30 + x^31 - x^32 + x^33 - x^34 + x^35 - 2*x^36 + x^37 - x^38 + x^39 - x^40 + x^41) / ((1 - x)^2*(1 + x)*(1 - x + x^2)*(1 + x^2)*(1 + x + x^2)*(1 - x^2 + x^4)*(1 - x^3 + x^6)*(1 + x^3 + x^6)*(1 - x^6 + x^12)) + O(x^80)) \\ _Colin Barker_, Jan 31 2020
%Y A187184 See A187180-A187188 for alphabets of size 2 through 10.
%K A187184 nonn,easy
%O A187184 1,7
%A A187184 _N. J. A. Sloane_, Mar 06 2011