Capta1n_Shy's blog

By Capta1n_Shy, history, 3 years ago, In English

Today, I get a problem.

Sum of greatest odd divisor of numbers in range $$$[a, b]$$$ with $$$a, b <= 10^9$$$

I found solution here : https://www.geeksforgeeks.org/sum-of-greatest-odd-divisor-of-numbers-in-given-range/

But I think the solution is not clear for the even number case.

Can find a better solution or more detailed explanation ?

Sorry, my english was bad.

Thanks you.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it