Catalan numbers with application - Thomas Koshy