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”).
%I #11 Dec 30 2021 00:24:27
%S 0,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,
%T 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
%U 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
%N a(n) = Max(omega(k): 1<=k<=n), where omega(n) = A001221(n), the number of distinct prime factors of n.
%C This sequence has the same relationship to A001221 as A000523 has to A001222. Also, for n>=1, n-1 occurs as A002110(n)-A002110(n-1) consecutive terms beginning with term a(A002110(n-1)), where A002110 is the primorials; i.e. the frequencies of occurrence are the first differences (1,4,24,180,...) of the primorials.
%H Alois P. Heinz, <a href="/A111972/b111972.txt">Table of n, a(n) for n = 1..65536</a>
%H Safia Aoudjit and Djamel Berkane, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL24/Berkane/berkane8.html">Explicit Estimates Involving the Primorial Integers and Applications</a>, J. Int. Seq., Vol. 24 (2021), Article 21.7.8.
%e a(7)=2 because omega(1)=0, omega(2)=omega(3)=omega(4)=omega(5)=omega(7)=1 and omega(6)=2 (as 6=2*3), so 2 is the maximum.
%p a:= proc(n) option remember; `if`(n=0, 0,
%p max(a(n-1), nops(ifactors(n)[2])))
%p end:
%p seq(a(n), n=1..105); # _Alois P. Heinz_, Aug 19 2021
%t FoldList[Max, PrimeNu /@ Range[105]] (* _Michael De Vlieger_, Dec 29 2021 *)
%Y Cf. A001221 (omega(n)), A002110 (primorials), A000523 (Log_2(n) rounded down), A001222 (Omega(n), also known as bigomega(n)).
%K nonn
%O 1,6
%A _Rick L. Shepherd_, Aug 24 2005