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