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