|
|
A246424
|
|
Number of distinct terms by nesting the 2nd elementary symmetric polynomial in 4 variables.
|
|
0
|
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
The second elementary symmetric polynomial s_2 of 4 variables (x,y,z,w) is s_2(x,y,z,w) = xy + xz + xw + yz + yw + zw, so it has 6 distinct terms. Now we take each of those terms and consider it a new variable and calculate s_2 again. This time it will have 13 distinct terms (15 in total, of which 3 are the same). Repeat, you will find 43 distinct terms, and so on.
|
|
MAPLE
|
s:= proc(n) option remember; `if`(n=1, x+y+z+w,
(p-> expand(p^2-map(u->u^2, p)))(s(n-1)))
end:
a:= n-> nops(s(n)):
|
|
MATHEMATICA
|
With[{g = Level[SymmetricPolynomial[2, #], 1] &},
Length /@ NestList[g, {x, y, z, w}, 5]]
(* Second program: *)
s[n_] := s[n] = If[n == 1, x + y + z + w,
With[{p = s[n-1]}, Expand[p^2 - (#^2& /@ p)]]];
a[n_] := Length[s[n]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,hard,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|