OFFSET
0,4
EXAMPLE
x_1(x_1 + x_2)(x_1 + x_2 + x_3) = x_1^3 + 2*x_1^2x_2 + x_1x_2^2 + x_1^2x_3 + x_1x_2x_3, so the distinct coefficients are 1 and 2. Therefore, a(3) = 2.
PROG
(Python)
from math import prod
from sympy import symbols, Poly
def A392779(n):
if n == 0: return 1
s = symbols('x_0:'+str(n))
return len(set(Poly(prod(sum(s[j] for j in range(i)) for i in range(1, n+1))).coeffs())) # Chai Wah Wu, Mar 30 2026
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Seiichi Manyama, Mar 30 2026
STATUS
approved
