login
Minimal positive integer k such that n^k is not divisible by the sum of its decimal digits; or 0 if no such integer exists.
17

%I #10 Mar 30 2012 17:27:07

%S 0,4,6,2,2,11,2,2,3,0,1,6,1,1,1,1,1,5,1,4,3,1,1,7,1,1,2,1,1,25,1,1,1,

%T 1,1,6,1,1,1,2,1,6,1,1,3,1,1,5,1,2,1,1,1,7,1,1,1,1,1,15,1,1,3,1,1,1,1,

%U 1,1,2,1,4,1,1,1,1,1,1,1,4,2,1,1,4,1,1,1,1,1,13,1,1,1,1,1,1,1,1,1,0

%N Minimal positive integer k such that n^k is not divisible by the sum of its decimal digits; or 0 if no such integer exists.

%F a(n) = minimal positive integer k such that n^k does not belong to A005349.

%F For m>=0, a(10^m) = 0.

%Y Cf. A135186, A135187, A135188, A135189, A135190, A135191, A135192, A135193, A135194, A135195, A135196, A135197, A135198, A135199, A135200, A135201, A135202.

%K nonn,base

%O 1,2

%A _Max Alekseyev_, Sep 24 2011