***************************************************************************** * www.FindStat.org - The Combinatorial Statistic Finder * * * * Copyright (C) 2019 The FindStatCrew * * * * This information is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * ***************************************************************************** ----------------------------------------------------------------------------- Statistic identifier: St000015 ----------------------------------------------------------------------------- Collection: Dyck paths ----------------------------------------------------------------------------- Description: The number of peaks of a Dyck path. ----------------------------------------------------------------------------- References: ----------------------------------------------------------------------------- Code: def statistic(x): return x.number_of_peaks() ----------------------------------------------------------------------------- Statistic values: [1,0] => 1 [1,0,1,0] => 2 [1,1,0,0] => 1 [1,0,1,0,1,0] => 3 [1,0,1,1,0,0] => 2 [1,1,0,0,1,0] => 2 [1,1,0,1,0,0] => 2 [1,1,1,0,0,0] => 1 [1,0,1,0,1,0,1,0] => 4 [1,0,1,0,1,1,0,0] => 3 [1,0,1,1,0,0,1,0] => 3 [1,0,1,1,0,1,0,0] => 3 [1,0,1,1,1,0,0,0] => 2 [1,1,0,0,1,0,1,0] => 3 [1,1,0,0,1,1,0,0] => 2 [1,1,0,1,0,0,1,0] => 3 [1,1,0,1,0,1,0,0] => 3 [1,1,0,1,1,0,0,0] => 2 [1,1,1,0,0,0,1,0] => 2 [1,1,1,0,0,1,0,0] => 2 [1,1,1,0,1,0,0,0] => 2 [1,1,1,1,0,0,0,0] => 1 [1,0,1,0,1,0,1,0,1,0] => 5 [1,0,1,0,1,0,1,1,0,0] => 4 [1,0,1,0,1,1,0,0,1,0] => 4 [1,0,1,0,1,1,0,1,0,0] => 4 [1,0,1,0,1,1,1,0,0,0] => 3 [1,0,1,1,0,0,1,0,1,0] => 4 [1,0,1,1,0,0,1,1,0,0] => 3 [1,0,1,1,0,1,0,0,1,0] => 4 [1,0,1,1,0,1,0,1,0,0] => 4 [1,0,1,1,0,1,1,0,0,0] => 3 [1,0,1,1,1,0,0,0,1,0] => 3 [1,0,1,1,1,0,0,1,0,0] => 3 [1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0,1,0,1,0,0] => 3 [1,1,1,1,0,0,0,1,1,0,0,0] => 2 [1,1,1,1,0,0,1,0,0,0,1,0] => 3 [1,1,1,1,0,0,1,0,0,1,0,0] => 3 [1,1,1,1,0,0,1,0,1,0,0,0] => 3 [1,1,1,1,0,0,1,1,0,0,0,0] => 2 [1,1,1,1,0,1,0,0,0,0,1,0] => 3 [1,1,1,1,0,1,0,0,0,1,0,0] => 3 [1,1,1,1,0,1,0,0,1,0,0,0] => 3 [1,1,1,1,0,1,0,1,0,0,0,0] => 3 [1,1,1,1,0,1,1,0,0,0,0,0] => 2 [1,1,1,1,1,0,0,0,0,0,1,0] => 2 [1,1,1,1,1,0,0,0,0,1,0,0] => 2 [1,1,1,1,1,0,0,0,1,0,0,0] => 2 [1,1,1,1,1,0,0,1,0,0,0,0] => 2 [1,1,1,1,1,0,1,0,0,0,0,0] => 2 [1,1,1,1,1,1,0,0,0,0,0,0] => 1 ----------------------------------------------------------------------------- Created: Sep 27, 2011 at 19:32 by Chris Berg ----------------------------------------------------------------------------- Last Updated: Sep 13, 2014 at 20:34 by Martin Rubey