XOR-Equation B
We use for the bitwise XOR of and .
Define the XOR-product of and , denoted by , similar to a long multiplication in base , except that the intermediate results are XORed instead of the usual integer addition.
For example, , or in base , :
We consider the equation:
For example, is a solution to this equation for .
Let be the number of solutions to those equations with and .
You are given .
Find
异或等式(二)
用表示和按位异或的结果。
考虑和的进制长乘法,但将中间结果的相加替换为按位异或,定义其结果为和的异或积,并记作。
例如,,或在进制下,:
考虑等式:
例如,是上式取时的一个解。
若上式取遍所有,考虑其所有满足的解,记为所有这些解的数目。
已知。
求。
Gitalking ...