We have, Tr=1=1024Cr(5)2(1024−r)(7)8r
This is an integer, if 1024−r is an even number and r is a multiple of 8
i.e. when r is a multiple of 8 since 0≤r≤1024
The number of multiples of 8 which lies between 0 and 1024 is 1024=0+(n−1)8 ⇒n−1=81024=128 ⇒n=129