$ h_i(x_1,\ldots,x_n) = \sum_{j_1+\cdots+j_n=i} \;\prod_{k=1}^n x_k^{j_k}$

I think I need a Partitions(i) to do it but I need some $j_k$ to be zero, then I tried PartitionTuples(level=n,size=i), and it still doesn't work.

1 | initial version |

$ h_i(x_1,\ldots,x_n) = \sum_{j_1+\cdots+j_n=i} \;\prod_{k=1}^n x_k^{j_k}$

I think I need a Partitions(i) to do it but I need some $j_k$ to be zero, then I tried PartitionTuples(level=n,size=i), and it still doesn't work.

$ h_i(x_1,\ldots,x_n) = \sum_{j_1+\cdots+j_n=i} \;\prod_{k=1}^n x_k^{j_k}$

I think I need a Partitions(i) to do it but I need some $j_k$ to be zero, then I tried PartitionTuples(level=n,size=i), and it still doesn't work.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.