PI generated for 3, 4, 5-grams