The definition of a $\lambda$-ring (https://en.wikipedia.org/wiki/%CE%9B-ring) makes use of certain "universal" polynomials $P_n$ and $P_{n,m}$, which basically give you the formulas for computing expressions such as (respectively) $\lambda^n(xy)$ or $\lambda^n(\lambda^m(x))$.
There is no need to know anything about $\lambda$-rings to compute those polynomials, they have elementary descriptions in terms of symmetric functions. Namely, let $(x_i)_{i\in \mathbb{N}}$ and $(y_i)_{i\in \mathbb{N}}$ be two families of indeterminates, and let $e_k$ (resp. $f_k$) be the $k$th elementary symmetric function in the $x_i$ (resp. the $y_i$). Then $P_{n,m}(T_1,\dots,T_{nm})\in \mathbb{Z}[T_1,\dots,T_{nm}]$ is the unique polynomial such that $P_{n,m}(e_1,\dots,e_{nm})$ is the coefficient of $t^n$ in $$\prod_{1\leqslant i_1 < \dots < i_m\leqslant nm}(1+t\cdot x_{i_1}\cdots x_{i_m}),$$ and $P_n(S_1,\dots,S_n,T_1,\dots,T_n)\in \mathbb{Z}[S_1,\dots,S_n,T_1,\dots,T_n]$ is the unique polynomial such that $P_n(e_1,\dots,e_n,f_1,\dots,f_n)$ is the coefficient of $t^n$ in $$\prod_{1\leqslant i,j\leqslant n}(1+t\cdot x_iy_j).$$
It turns out these polynomials are very annoying to actually compute by hand except for very small cases, and I haven't been able to find a reference with enough examples (usually only 3 or 4 examples are given in a book).
Is there a function in some computer algebra system (preferably Sage as I have access to it) to compute these polynomials? They do not see a huge amount of usage, but they are not completely unknown either, so I thought someone might have already implemented that.
If not, I would be very grateful if someone could help me write code to compute them (preferably in Sage, again). I'm not very proficient with those algebra systems, but I figure that it should be relatively easy for anyone who is used to them (especially with functions regarding symmetric polynomials).
Here is a direct computation of $P_{n,m}$ from the definition, in SageMath:
For example:
And here is $P_n$ directly from the definition, in SageMath:
For example: