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 A116548 #6 Mar 04 2023 18:40:05 %S A116548 1,2,3,2,5,3,7,4,3,5,11,4,13,7,5,8,17,6,19,5,7,11,23,6,5,13,9,7,29,6, %T A116548 31,8,11,17,7,9,37,19,13,8,41,7,43,11,9,23,47,8,7,10,17,13,53,18,11, %U A116548 14,19,29,59,10,61,31,21,16,13,11,67,17,23,10,71,12,73,37,15,19,11,13,79,10 %N A116548 a(n) = smallest divisor d of n that occurs earlier in the sequence fewer than a(d) times. %C A116548 When n is prime, no smaller divisor is available, so a(n) = n. It can be shown than a(n) < n if n is composite. Similar to Golomb's sequence (A001462), but with the added condition that a(n) divides n. %H A116548 John Tyler Rascoe, <a href="/A116548/b116548.txt">Table of n, a(n) for n = 1..10000</a> %o A116548 (Python) %o A116548 from sympy import divisors %o A116548 def A(maxn): %o A116548 A = [] %o A116548 for n in range(1,maxn+1): %o A116548 d = divisors(n) %o A116548 for j in range(0,len(d)): %o A116548 if d[j] > len(A): break %o A116548 if A.count(d[j]) < A[d[j]-1]: break %o A116548 A.append(d[j]) %o A116548 return(A) # _John Tyler Rascoe_, Mar 04 2023 %Y A116548 Cf. A095163, A001462. %K A116548 nonn %O A116548 1,2 %A A116548 _Franklin T. Adams-Watters_, Mar 16 2006