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.

A379882 a(n) is the length of the n-th maximal run of consecutive terms of A377091 with the same sign.

This page as a plain text file.
%I A379882 #13 Jan 25 2025 02:47:49
%S A379882 1,2,2,3,2,3,8,5,6,5,6,10,8,13,8,9,10,11,10,11,15,13,23,13,14,15,16,
%T A379882 15,16,17,18,17,18,38,20,21,20,21,22,23,22,23,24,25,50,26,26,26,28,28,
%U A379882 28,29,29,29,31,29,5,32,26,4,32,28,2,3,33,31,34,34,4,36
%N A379882 a(n) is the length of the n-th maximal run of consecutive terms of A377091 with the same sign.
%H A379882 Rémy Sigrist, <a href="/A379882/b379882.txt">Table of n, a(n) for n = 1..10000</a>
%H A379882 Rémy Sigrist, <a href="/A379882/a379882.txt">C++ program</a>
%e A379882 A377091 begins:
%e A379882     0, 1, 2, -2, -1, 3, 4, 5, -4, -3, 6, 7, 8, -8.
%e A379882 So the present sequence begins:
%e A379882     1, 2,    2,      3,       2,      3.
%t A379882 (* A377091list is defined at A377091 *)
%t A379882 Map[Length, Most[SplitBy[A377091list[2000], Sign]]] (* _Paolo Xausa_, Jan 24 2025 *)
%o A379882 (C++) // See Links section.
%Y A379882 Cf. A377091.
%K A379882 nonn
%O A379882 1,2
%A A379882 _Rémy Sigrist_, Jan 05 2025