|
|
A054850
|
|
Binary logarithm of n-th primorial, rounded down to an integer.
|
|
8
|
|
|
1, 2, 4, 7, 11, 14, 18, 23, 27, 32, 37, 42, 48, 53, 59, 64, 70, 76, 82, 88, 95, 101, 107, 114, 120, 127, 134, 140, 147, 154, 161, 168, 175, 182, 189, 197, 204, 211, 219, 226, 234, 241, 249, 256, 264, 272, 279, 287, 295, 303, 311, 318, 326, 334, 342, 350, 358, 367
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
A measure of the growth rate of the primorials.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = floor(log_2 n#) = m such that 2^m <= p(n)# < 2^(m + 1), where p(n)# is the primorial of the n-th prime (A002110).
|
|
EXAMPLE
|
The product of the first four primes is 2 * 3 * 5 * 7 = 210. In binary, 210 is 11010010, an 8-bit number, and we see that 2^7 < 210 < 2^8. And indeed log_2 210 = 7.7142455... and thus a(4) = 7.
a(5) = floor(log_2 2310) = floor(11.1736771363...) = 11.
|
|
MAPLE
|
a := n -> ilog2(mul(ithprime(i), i=1..n)):
|
|
MATHEMATICA
|
Table[Floor[Log[2, Product[Prime[i], {i, n}]]], {n, 60}]
Floor[Log2[#]]&/@FoldList[Times, Prime[Range[60]]] (* Harvey P. Dale, Aug 04 2021 *)
|
|
PROG
|
(PARI) a(n) = logint(prod(k=1, n, prime(k)), 2); \\ Michel Marcus, Jan 06 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Name simplified by Alonso del Arte, Oct 14 2018 (old name is now first formula).
|
|
STATUS
|
approved
|
|
|
|