is this approach correct

there window size is 127

so numbering is from 0 to 126 = 0 to (2^n)-1

so, (2^n)-1=126

2^n=127

so, n=7

now, the actual range will be

0 to (2^n)-1 == 0 to (2^7)-1

i.e= 0 to 127

there window size is 127

so numbering is from 0 to 126 = 0 to (2^n)-1

so, (2^n)-1=126

2^n=127

so, n=7

now, the actual range will be

0 to (2^n)-1 == 0 to (2^7)-1

i.e= 0 to 127