At the back of the book which contains this problem, a hint is given to consider $$S_n\cdot2^{k-1}\cdot3\cdot5\cdot9\cdot\ldots$$ where $2^k \le n < 2^{k+1}$.
I don't know how this helps? I know that every positive integer can be written as a sum of powers of 2, but not sure if this is relevant.