OFFSET
0,7
MAPLE
b:= proc(n) b(n):= `if`(n=0, 1, expand(b(n-1)*(1-x^(n^3)))) end:
a:= n-> max(coeffs(b(n))):
seq(a(n), n=0..52); # Alois P. Heinz, Jan 31 2024
PROG
(PARI) a(n)=vecmax(Vec(prod(k=1, n, 1-x^(k^3))));
vector(30, n, a(n-1)) \\ Joerg Arndt, Jan 31 2024
(Python)
from collections import Counter
def A369764(n):
c = {0:1, 1:-1}
for i in range(2, n+1):
d = Counter(c)
for k in c:
d[k+i**3] -= c[k]
c = d
return max(c.values()) # Chai Wah Wu, Jan 31 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jan 31 2024
EXTENSIONS
a(45)-a(52) from Alois P. Heinz, Jan 31 2024
STATUS
approved