%I #7 Oct 17 2019 22:37:19
%S 0,0,2,2,2,2,2,2,2,2,0,0,4,3,2,2,2,2,2,2,5,5,4,3,3,2,2,2,2,2,4,4,3,3,
%T 3,3,2,2,2,2,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,2,2,
%U 2,2,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,2,2,2,2,2,3,3,3,3,2,2,2,2,2,2,0,0,7,5,4
%N Smallest k such that the sum of the digits of n each raised to k-th power is greater than n, or 0 if no such k exists.
%e 103 needs k at least equal to 5 because 1^5 + 0^5 + 3^5 = 244 > 103.
%K nonn,base
%O 0,3
%A _Patrick De Geest_, Nov 15 1999
|