OFFSET
0,11
MATHEMATICA
Table[Max[Abs[CoefficientList[Product[(1 - x^Prime[k]), {k, 1, n}], x]]], {n, 0, 46}]
PROG
(Python)
from collections import Counter
from sympy import prime
def A367843(n):
c = {0:1}
for k in range(1, n+1):
p, b = prime(k), Counter(c)
for j in c:
b[j+p] -= c[j]
c = b
return max(map(abs, c.values())) # Chai Wah Wu, Feb 06 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 06 2024
STATUS
approved