#nt901. 常见积性函数
常见积性函数
Common Multiplicative Functions
Problem Description
Given a number , for every from to compute — the number of divisors, the sum of divisors, Euler's totient function, and the Möbius function, respectively.
To keep the output from being too large and to prevent precomputing answers from a table, you are also given ; for each function output the XOR sum of . For the Möbius function, treat the values as unsigned integers.
Input Format
The first line contains three integers .
Output Format
Output four lines, each with one integer, representing the answers for the divisor count, the divisor sum, Euler's totient, and the Möbius function, respectively.
Sample Input
100 1 0
Sample Output
71
31663
9881
31
Constraints
For all data, , .