OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
Antti Karttunen, Data supplement: n, a(n) computed for n = 1..100000
MAPLE
# First load the procedure pp from A100549
# B = prod_{p <= pp(n)} p^e_p
B := proc(n) local v, f, pv; global pp; option remember;
pv := pp(n);
v := 1:
for f in op(2..-1, ifactors(n)) while f[1] <= pv do
v := v * f[1]^f[2];
end do;
return v;
end proc;
MATHEMATICA
{1}~Join~Array[Function[{q, P}, Times @@ Power @@@ Select[q, First@# <= P &]] @@ {#, Prime@ PrimePi[1 + Max@ #[[All, -1]] ]} &@ FactorInteger[#] &, 96, 2] (* Michael De Vlieger, Nov 13 2018 *)
PROG
(PARI)
A100549(n) = if(1==n, 1, prime(primepi(1+vecmax(factor(n)[, 2]))));
A100762(n) = if(1==n, 1, my(u = A100549(n), f=factor(n)); prod(i=1, #f~, if(f[i, 1]<=u, f[i, 1]^f[i, 2], 1))); \\ Antti Karttunen, Nov 11 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
David Applegate and N. J. A. Sloane, Sep 15 2008
STATUS
approved