Problem: Integer powers

Problem

Solution