| |||||||||
IMC2015: Day 1, Problem 22. For a positive integer n, let f(n) be the number obtained by writing n in binary and replacing every 0 with 1 and vice versa. For example, n=23 is 10111 in binary, so f(n) is 1000 in binary, therefore f(23)=8. Prove that n∑k=1f(k)≤n24. When does equality hold? Proposed by Stephan Wagner, Stellenbosch University | |||||||||
© IMC |