The beginnings of combinatorics in India date back to Bharata's Natyasastra and the last chapter of the work Chandahsastra (Sanskrit Prosody) by Pingala (c. 300 BCE). Pingala deals in a few cryptic ...