OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
MAPLE
SymmPolyn := proc(L::list, n::integer)
local c, a, sel;
a :=0 ;
sel := combinat[choose](nops(L), n) ;
for c in sel do
a := a+mul(L[e], e=c) ;
end do:
a;
end proc:
A024448 := proc(n)
[seq(ithprime(k), k=1..n+2)] ;
SymmPolyn(%, 3) ;
end proc: # R. J. Mathar, Sep 23 2016
# second Maple program:
b:= proc(n) option remember; convert(series(`if`(n=0, 1,
b(n-1)*(ithprime(n)*x+1)), x, 4), polynom)
end:
a:= n-> coeff(b(n+2), x, 3):
seq(a(n), n=1..30); # Alois P. Heinz, Sep 06 2019
MATHEMATICA
b[n_] := b[n] = If[n == 0, 1, b[n - 1] (Prime[n] x + 1)];
a[n_] := SeriesCoefficient[b[n + 2], {x, 0, 3}];
a /@ Range[30] (* Jean-François Alcover, Feb 03 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved