OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[0, 400], Min[Accumulate[Reverse[IntegerDigits[#, 2]]/.{0->1, 1->-1}]]>0&] (* Harvey P. Dale, Aug 25 2013 *)
PROG
(Haskell)
a036993 n = a036993_list !! (n-1)
a036993_list = filter ((p 0) . a030308_row) [0..] where
p _ [] = True
p zeros (0:bs) = p (zeros + 1) bs
p zeros (1:bs) = zeros > 1 && p (zeros - 1) bs
-- Reinhard Zumkeller, Jul 31 2013
CROSSREFS
KEYWORD
nonn,easy,base,nice
AUTHOR
EXTENSIONS
More terms from Erich Friedman
STATUS
approved