Library / /16 of 841
Number theory Difficulty 4.6 AIME Find the answer
Let s(n) denote the number of 1's in the binary representation of n. Compute 25510≤n<16∑2n(−1)s(n)
A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.
Solution
Notice that if n<8,(−1)s(n)=(−1)⋅(−1)s(n+8) so the sum becomes 2551(1−28)∑0≤n<82n(−1)s(n)= 45 .
Want a route through all this instead of an archive?
The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.
Source: Omni-MATH,
licensed Apache-2.0.
Statement reproduced verbatim; metadata (topic, difficulty) added by this project.