For a positive integer $n$ denote $d(n)$ its greatest odd divisor. Find the value of the sum $$d(1008)+d(1009)+...+d(2015)$$
Source: 2015 Pan-African Mathematics Olympiad Problem 4
Tags: number theory
For a positive integer $n$ denote $d(n)$ its greatest odd divisor. Find the value of the sum $$d(1008)+d(1009)+...+d(2015)$$