OFFSET
1,2
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..15098
PROG
(Haskell)
a171868 n = a171868_list !! (n-1)
a171868_list = zipWith (-) (tail a171865_list) a171865_list
-- Reinhard Zumkeller, Oct 31 2011
(Python)
for n in range(1, 10**4):
....for m in range(n-1, -1, -1):
............A181391_list.append(n-m)
............break
....else:
........A181391_list.append(0)
........A171868_list.append(n-l)
........l = n # Chai Wah Wu, Jan 02 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Oct 18 2010
STATUS
approved