encoding 2 - ext(p+1)