Library / /15 of 860
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. Spacing and $ signs are ignored.
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 and solution reproduced as published; topic and difficulty added by this site.