This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A188794 #17 Oct 28 2020 10:28:32 %S A188794 2,2,2,2,2,3,2,2,2,2,2,3,2,2,2,3,2,3,2,2,2,5,2,3,4,2,2,3,2,3,2,5,4,2, %T A188794 2,3,4,2,2,3,2,3,2,2,3,7,2,3,4,2,2,5,2,3,2,3,4,2,2,3,4,5,2,2,4,3,2,2, %U A188794 2,3,2,3,4,2,6,2,2,3,2,3,4,5,2,3,4,2,2,7,2,3,4,5,6,2,2,3,4,2,2,3,8,5,2,2,3,4,2,3,2,3,2 %N A188794 a(n) is the smallest integer k >= 2 such that the number of divisors d>1 of n-k with k|(n-d) equals A188550(n). %C A188794 a(n) <= floor(sqrt(n)) follows from the definition of A188550. %H A188794 Alois P. Heinz, <a href="/A188794/b188794.txt">Table of n, a(n) for n = 4..20004</a> %p A188794 with(numtheory): %p A188794 a:= proc(n) local h, i, k, m; %p A188794 m,i:= 0,0; %p A188794 for k from 2 to floor(sqrt(n)) do %p A188794 h:= nops(select(x-> irem(x, k)=0, %p A188794 [seq (n-d, d=divisors(n-k) minus{1})])); %p A188794 if h>m then m,i:= h,k fi %p A188794 od; i %p A188794 end: %p A188794 seq(a(n), n=4..120); # _Alois P. Heinz_, Apr 10 2011 %t A188794 a[n_] := Module[{h, i = 0, k, m = 0}, For[k = 2, k <= Floor[Sqrt[n]], k++, h = Length[Select[Table[n-d, {d, Rest[Divisors[n-k]]}], Mod[#, k] == 0&]]; If[h > m, {m, i} = {h, k}]]; i]; %t A188794 a /@ Range[4, 120] (* _Jean-François Alcover_, Oct 28 2020, after _Alois P. Heinz_ *) %Y A188794 Cf. A188550, A188579. %K A188794 nonn,look %O A188794 4,1 %A A188794 _Vladimir Shevelev_, Apr 10 2011