2even = 1mod3
2odd = 2mod3
basically we have
sum = (20-1 + 22-1 + 24-1 + ... + 22008-1)/3 + (21-2 + 23-2+25-2+...+22007-2)/3
= (20 + 21 + 22 + ... + 22008)/3 - (1005 + 2*1004)/3
= (22009-3014)/3
P.S: calc. errors possible
find the value of summation \sum_{r=0}^{2008}\left [ \frac{2^r}{3} \right ] \\ \\\textup{where [.] is GIF}
2even = 1mod3
2odd = 2mod3
basically we have
sum = (20-1 + 22-1 + 24-1 + ... + 22008-1)/3 + (21-2 + 23-2+25-2+...+22007-2)/3
= (20 + 21 + 22 + ... + 22008)/3 - (1005 + 2*1004)/3
= (22009-3014)/3
P.S: calc. errors possible