I was going over this problem which is math but didn\'t understand how to program it, any suggestions?
Basically, we have two numbers (x and k). The