login
A058032
Largest m such that 2^n / primorial(m) >= 1.
1
0, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18
OFFSET
0,4
COMMENTS
Primorial order of powers of 2.
LINKS
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
Cf. A045716 (binary order, A029837, of primorials, A002110).
Sequence in context: A351960 A372759 A194327 * A056155 A157684 A194339
KEYWORD
nonn,changed
AUTHOR
Labos Elemer, Nov 22 2000
EXTENSIONS
a(0) inserted by Amiram Eldar, Feb 08 2025
STATUS
approved