Power of n and n-th root of multi-digit numbers based on recurrent relations - A. N. Tereshchenko (Problems in programming, 2015)