Ensure that you are logged in and have the required permissions to access the test.
A server error has occurred. Please refresh the page or try after some time.
An error has occurred. Please refresh the page or try after some time.
2.8
You are given a positive integer N.f(N) is the greatest odd divisor of N.
Find the sum (f(1)+f(2)+...+f(N))%M.
Input format
Output format
For each value of N, print the value of (f(1)+f(2)+...+f(N))%M in a separate line.
5 1 100 110 30 12345 100000007 10 28383 100 5
1 18 50804693 36 4
-
A password reset link will be sent to the following email id
?