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.

A074804 Kolakoski-(3,2) sequence: a(n) is length of n-th run.

This page as a plain text file.
%I A074804 #9 Apr 03 2015 01:59:17
%S A074804 3,3,3,2,2,2,3,3,3,2,2,3,3,2,2,3,3,3,2,2,2,3,3,3,2,2,3,3,2,2,2,3,3,3,
%T A074804 2,2,3,3,2,2,2,3,3,3,2,2,2,3,3,2,2,3,3,2,2,2,3,3,3,2,2,2,3,3,2,2,3,3,
%U A074804 3,2,2,2,3,3,2,2,3,3,2,2,2,3,3,3,2,2,2,3,3,2,2,3,3,3,2,2,2,3,3,2,2,3,3,2,2
%N A074804 Kolakoski-(3,2) sequence: a(n) is length of n-th run.
%H A074804 Ivan Neretin, <a href="/A074804/b074804.txt">Table of n, a(n) for n = 1..10000</a>
%t A074804 seed = {3, 2}; w = {}; i = 1; Do[w = Join[w, Array[seed[[Mod[i - 1, Length[seed]] + 1]] &, If[i > Length[w], seed, w][[i]]]]; i++, {n, 43}]; w (* _Ivan Neretin_, Apr 02 2015 *)
%Y A074804 Cf. A000002.
%K A074804 nonn
%O A074804 1,1
%A A074804 Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Sep 08 2002