OFFSET
1,2
LINKS
Rémy Sigrist, C program for A171888
PROG
(Python)
for n in range(1, 10**6):
....for m in range(n-1, -1, -1):
............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
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