Let the initial number be represented by variable n.
ATTACHED IS THE SOLUTION
6.5m questions
8.7m answers