login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons 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

Table of n, a(n) for n=1..23.

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

Cf. A181391, A171865, A171868, A171887.

Sequence in context: A284507 A284492 A224779 * A286905 A028946 A213713

Adjacent sequences:  A171885 A171886 A171887 * A171889 A171890 A171891

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 20 13:44 EST 2021. Contains 340302 sequences. (Running on oeis4.)