Problem

Source: Iran TST 2006

Tags: ceiling function, logarithms, algebra proposed, algebra



Let $n$ be a fixed natural number. a) Find all solutions to the following equation : \[ \sum_{k=1}^n [\frac x{2^k}]=x-1 \] b) Find the number of solutions to the following equation ($m$ is a fixed natural) : \[ \sum_{k=1}^n [\frac x{2^k}]=x-m \]