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.
-
A password reset link will be sent to the following email id
?