OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..20000
EXAMPLE
For n = 7, primorial(7) = 2*3*5*7*11*13*17 = 510510;
primorial(4)^2 = (2*3*5*7)^2 = 210^2 = 44100 < 510510
but
primorial(5)^2 = (2*3*5*7*11)^2 = 2310^2 = 5336100 > 510510
so a(7) = 5.
MAPLE
p:= proc(n) option remember; `if`(n<1, 1, p(n-1)*ithprime(n)) end:
a:= proc(n) option remember; local k; for k from
`if`(n=0, 0, a(n-1)) while p(k)^2<=p(n) do od; k
end:
seq(a(n), n=0..74); # Alois P. Heinz, Jul 20 2024
MATHEMATICA
q[x_] := Apply[Times, Table[Prime[j], {j, 1, x}]] Table[Min[Flatten[Position[Table[Sign [q[j]-q[m]/q[j]], {j, 1, m}], 1]]], {m, 1, 250}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 14 2002
EXTENSIONS
Edited by Jon E. Schoenfield, Jul 20 2024
a(0)=1 prepended by Alois P. Heinz, Jul 20 2024
STATUS
approved