I need to find sum of first N natural numbers in binary form for example if N=3, 01+10+11=22 My problem is the constraint for N is too high: 1<=N<=10^18 Any tips on ap