login
A392779
Number of distinct coefficients in the expansion of x_1(x_1 + x_2)...(x_1 + x_2 + ... + x_n).
2
1, 1, 1, 2, 4, 7, 14, 29, 56, 109, 207, 369, 629, 1063, 1825, 3194, 5700, 10172, 17822, 30540, 51442, 85836, 142809, 237876, 396590, 660032, 1093409, 1800392, 2944809, 4782820, 7709207, 12322508, 19517477, 30622829
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