I was looking into this video, for a really famous question for bit manipulation
He wrote this statement
count -= (1 << ((length - 1) / 2)); <
count -= (1 << ((length - 1) / 2));