This question was asked in Ex 5.3, 2
Why n is taken as 23 in first bit

Deevi Naveen's image