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 A297217 #40 Mar 02 2018 22:43:49 %S A297217 3,0,4,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, %T A297217 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, %U A297217 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4 %N A297217 Most common value of the number of divisors function among all composites up to composite(n) inclusive, or 0 if there is a tie. %C A297217 Is a(n) = 4 for all n > 4? %e A297217 n | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 %e A297217 ------------------------------------------------------------------------- %e A297217 A002808(n) | 4 | 6 | 8 | 9 | 10 | 12 | 14 | 15 | 16 | 18 | 20 | 21 %e A297217 ------------------------------------------------------------------------- %e A297217 A035004(n+1) | 3 | 4 | 4 | 3 | 4 | 6 | 4 | 4 | 5 | 6 | 6 | 4 %e A297217 ------------------------------------------------------------------------- %e A297217 a(n) | 3 | 0 | 4 | 0 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 %o A297217 (PARI) composite(n) = my(i=0); forcomposite(c=1, , i++; if(i==n, return(c))) %o A297217 mcv(v) = my(w=vecsort(v, , 8), count=vector(#w), ind=0, i=0); for(x=1, #w, for(y=1, #v, if(w[x]==v[y], count[x]++))); for(k=1, #count, if(count[k]==vecmax(count), ind=k; i++)); if(i > 1, return(0), return(w[ind])) %o A297217 a(n) = my(v=[]); for(k=1, n, v=concat(v, numdiv(composite(k)))); mcv(v) %Y A297217 Cf. A002808, A035004. %K A297217 nonn,easy %O A297217 1,1 %A A297217 _Felix Fröhlich_, Mar 02 2018