OFFSET
0,2
LINKS
Ray Chandler, Table of n, a(n) for n = 0..1660 (terms < 10^1000)
EXAMPLE
a(1) = #{{0,1}, {1}} = 2;
a(2) = #{{-2,0,1,2}, {-2,1,2}, {-1,0,1,2}, {-1,0,2}, {-1,1,2}, {-1,2}, {0,1}, {0,1,2}, {0,2}, {1}, {1,2}, {2}} = 12.
PROG
(Haskell)
import Data.List (subsequences)
a181765 n = length [xs | xs <- subsequences [-n..n], sum xs > 0]
-- Reinhard Zumkeller, Feb 22 2012, Nov 13 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved