Find the value of ∑k=1Nmoddisplaystylesum_{k = 1}^{N} bmod k=1∑Nmod, where & denotes the bitwise AND operator.
Find the value of ∑k=1N((kM)&M) mod (109+7)displaystylesum_{k = 1}^{N} ((kM) & M) bmod (10^{9} + 7)k=1∑N((kM)&M)mod(109+7), where & denotes the bitwise AND operator.
(图片来源网络,侵删)