For any positive integer kk, let f(k)f(k) be the number of elements in the set {k+1,k+2,,2k}\{k + 1, k + 2, \ldots, 2k\} whose base 2 representation has precisely three 1s.