The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A171888 Records in A171868 (values). 4
1, 2, 5, 6, 9, 10, 11, 13, 15, 16, 18, 19, 21, 22, 23, 24, 27, 28, 29, 30, 31, 33, 34 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Rémy Sigrist, C program for A171888
PROG
(Python)
A181391_list, A171888_list, l, r = [0, 0], [1], 0, 1
for n in range(1, 10**6):
....for m in range(n-1, -1, -1):
........if A181391_list[m] == A181391_list[n]:
............A181391_list.append(n-m)
............break
....else:
........A181391_list.append(0)
........if n-l > r:
............r = n-l
............A171888_list.append(r)
........l = n # Chai Wah Wu, Jan 02 2015
(C) See Links section.
CROSSREFS
Sequence in context: A284507 A284492 A224779 * A286905 A028946 A213713
KEYWORD
nonn,more
AUTHOR
N. J. A. Sloane, Oct 18 2010
EXTENSIONS
a(12)-a(13) from Chai Wah Wu, Jan 02 2015
a(14)-a(17) from Rémy Sigrist, Jun 11 2019
a(18)-a(23) from Benjamin Chaffin, Sep 11 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 14 17:26 EDT 2024. Contains 372533 sequences. (Running on oeis4.)