XOR-Equation B (noch nicht übersetzt)
Problem 878
We use x⊕y for the bitwise XOR of x and y.
Define the XOR-product of x and y, denoted by x⊗y, similar to a long multiplication in base 2, except that the intermediate results are XORed instead of the usual integer addition.
For example, 7⊗3=9, or in base 2, 1112⊗112=10012: ⊗1111112⊗1111112⊗1111112⊕1111129⊗1110012
Define the XOR-product of x and y, denoted by x⊗y, similar to a long multiplication in base 2, except that the intermediate results are XORed instead of the usual integer addition.
For example, 7⊗3=9, or in base 2, 1112⊗112=10012: ⊗1111112⊗1111112⊗1111112⊕1111129⊗1110012
We consider the equation:
(a⊗a)⊕(2⊗a⊗b)⊕(b⊗b)=k.
For example, (a,b)=(3,6) is a solution to this equation for k=5.
Let G(N,m) be the number of solutions to those equations with k≤m and 0≤a≤b≤N.
You are given G(1000,100)=398.
Find G(1017,1000000).