in video sir is saying 2^i is represented as how
Problem related to 2^n-1
hello @vikash3303
binary representation of 2^i will have ith bit(counting from 0 and from right to left) 1 and remaining other bit will be 0.
for example
2^1-> 000000010 (1st bit from right is set rest all are 0)
2^2-> 000000100 (2nd bit from right is set rest all are 0)