From_ITK18_With_Love's blog

By From_ITK18_With_Love, history, 2 months 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.

Read more »

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