Problem 760 题目发布于 2021-06-27 翻译更新于 2021-09-10 Problem 760 Sum over Bitwise OperatorsDefineg(m,n)=(m⊕n)+(m∨n)+(m∧n)where ⊕,∨,∧ are the bitwise XOR, OR and AND operator respectively. Also setG(N)=∑n=0N∑k=0ng(k,n−k) For example, G(10)=754 and G(102)=583766. Find G(1018). Give your answer modulo 1 000 000 007. 位运算求和记g(m,n)=(m⊕n)+(m∨n)+(m∧n)其中⊕,∨,∧分别代表“按位异或”、“按位或”和“按位与”运算。 再记G(N)=∑n=0N∑k=0ng(k,n−k) 例如,G(10)=754,G(102)=583766。 求G(1018),并将你的答案对1 000 000 007取余。
Gitalking ...