Incredible hulk

how no of set bits is related with no of steps

As the step taken are in 2 to the power n
Also in binary
101001
When u solve it in decimal u use 2 power
That’s why they r related