Sequence Sum 2
Time limit2sMemory limit1024 MB
Given S and T up to 1e14, compute the sum of a_i for i from S to T, where a_i counts even divisors of i minus odd divisors.
- Level
Medium6 of 10
- Topics
- Math, Number theory
- Solved
- No attempts yet
Problem
For a positive integer , let be all of its positive divisors. Define .
Given positive integers and , find .
Input
The first line contains positive integers and , separated by a space.
Output
Print .