OFFSET
0,3
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..2000
EXAMPLE
a(0) = 0 since P(0) = Q(0) = 1.
a(1) = 1 since P(1) = Q(1) = 2.
a(2) = 2 since P(2) < Q(2) < P(3), i.e., 6 < 12 < 30.
a(3) = 4 since P(4) < Q(3) < P(5), i.e., 210 < 360 < 2310.
a(4) = 6 since P(6) < Q(4) < P(7), i.e., 30030 < 75600 < 510510.
a(5) = 8 since P(8) < Q(5) < P(9), i.e., 9699690 < 174636000 < 223092870, etc.
MATHEMATICA
f[x_] := Times @@ Flatten@ MapIndexed[Prime[#2]^#1 &, x]; j = 0; P = 1; {0}~Join~Table[Set[k, f[Range[n, 1, -1]]]; While[P <= k, j++; P *= Prime[j] ]; j -1, {n, 57}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Sep 16 2025
STATUS
approved
