The problem asks you to output some form of these numbers: 137, 1315, 73, 136, 255, 1384, 16385, one per line in the listed order.
Let’s see the first line of the correct output:
137=2(2(2)+2+2(0))+2(2+2(0))+2(0)
Hmmm… I don’t want to take the fun out the problem by giving the answer directly to you. So, I will give you a clue.
The clue:
If you have been thinking in this direction :
“How can I make the left hand side (in this case 137) to become the right hand side?”
Stop thinking!
The right direction to think for this problem is:
“How can I make the RIGHT HAND SIDE of the equation to become the left hand side?”
Got it?