OFFSET
0,4
MATHEMATICA
Table[Max[CoefficientList[Product[(1 + x^If[k == 1, 1, Prime[k - 1]]), {k, 1, n}], x]], {n, 0, 40}]
PROG
(Python)
from collections import Counter
from sympy import prime
def A369765(n):
c = {0:1, 1:1}
for k in range(1, n):
p, d = prime(k), Counter(c)
for j in c:
d[j+p] += c[j]
c = d
return max(c.values()) # Chai Wah Wu, Feb 01 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jan 31 2024
STATUS
approved