login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Number of times (>0) function f must be applied in A100800 to arrive at multiple of n, or 0 if multiple of n is never reached.
3

%I #8 May 14 2019 14:51:23

%S 1,1,1,1,1,1,1,1,1,14,32,3,12,36,3,31,10,2,71,8,8,8,11,8,67,8,3,35,35,

%T 10,31,53,22,45,38,4,59,70,44,27,27,19,44,36,5,14,47,42,33,66,16,33,

%U 42,11,105,151,5,92,69,7,7,48,6,23,20,22,7,62,22,145,7,7,20,7,58,7,184,44

%N Number of times (>0) function f must be applied in A100800 to arrive at multiple of n, or 0 if multiple of n is never reached.

%C Conjecture: No term is zero.

%H Robert Israel, <a href="/A101183/b101183.txt">Table of n, a(n) for n = 1..10000</a>

%e a(10) = 14 since f has to be applied 14 times to 10 to arrive at 130, a multiple of 10.

%p f:= n -> n + convert(convert(n,base,10),`+`):

%p g:= proc(n) local j,t;

%p t:= n;

%p for j from 1 do

%p t:= f(t);

%p if t mod n = 0 then return j fi

%p od

%p end proc:

%p map(g, [$1..100]); # _Robert Israel_, May 14 2019

%Y Cf. A100800, A100801.

%K base,look,nonn

%O 1,10

%A _Ray Chandler_, Dec 19 2004