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.

A171888 Records in A171868 (values).

This page as a plain text file.
%I A171888 #20 May 23 2025 15:40:08
%S A171888 1,2,5,6,9,10,11,13,15,16,18,19,21,22,23,24,27,28,29,30,31,33,34
%N A171888 Records in A171868 (values).
%H A171888 Rémy Sigrist, <a href="/A171888/a171888.txt">C program for A171888</a>
%o A171888 (Python)
%o A171888 A181391_list, A171888_list, l, r = [0, 0], [1], 0, 1
%o A171888 for n in range(1, 10**6):
%o A171888     for m in range(n-1, -1, -1):
%o A171888         if A181391_list[m] == A181391_list[n]:
%o A171888             A181391_list.append(n-m)
%o A171888             break
%o A171888     else:
%o A171888         A181391_list.append(0)
%o A171888         if n-l > r:
%o A171888             r = n-l
%o A171888             A171888_list.append(r)
%o A171888         l = n # _Chai Wah Wu_, Jan 02 2015
%o A171888 (C) // See Links section.
%Y A171888 Cf. A181391, A171865, A171868, A171887.
%K A171888 nonn,more
%O A171888 1,2
%A A171888 _N. J. A. Sloane_, Oct 18 2010
%E A171888 a(12)-a(13) from _Chai Wah Wu_, Jan 02 2015
%E A171888 a(14)-a(17) from _Rémy Sigrist_, Jun 11 2019
%E A171888 a(18)-a(23) from _Benjamin Chaffin_, Sep 11 2019