OFFSET
0,4
COMMENTS
Primorial order of powers of 2.
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = Max{m| sign(floor(2^n/A002110(m))) = 1}.
EXAMPLE
For n = 1 and 2, when 2 and 4 are divided by 2 the quotient = 1 or 2, but when they are divided by 6 the quotient < 1, so the largest suitable primorial is the first; thus a(1) = a(2) = 1.
For n = 11, 2^11 = 2048. The largest primorial P, such that 2048/P > 1 is P = 210, the 4th = A002110(4). So a(11) = 4.
MATHEMATICA
seq[lim_] := Module[{m = -1, p = 1, primo = 1, pow = 1, s = {}}, Do[While[pow < primo, AppendTo[s, m]; pow *= 2]; p = NextPrime[p]; primo *= p; m++, {lim}]; s]; seq[20] (* Amiram Eldar, Feb 08 2025 *)
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Labos Elemer, Nov 22 2000
EXTENSIONS
a(0) inserted by Amiram Eldar, Feb 08 2025
STATUS
approved