The trees in Figure 10.4.2 are identical rooted trees, with root 1, but as ordered trees, they are different.

Two different ordered rooted trees






Case 0: Left subtree has size 0; right subtree has size Case 1: Left subtree has size 1; right subtree has size
xxxxxxxxxxR.<z>=PowerSeriesRing(ZZ,'z')G1=(1+sqrt(1-4*z))/(2*z)G1G1. So the important thing about this first input is that it establishes z as being a variable associated with power series over the integers. When the second expression defines the value of G1 in terms of z, it is automatically converted to a power series.
xxxxxxxxxxR.<z>=PowerSeriesRing(ZZ,'z')G2=(1-sqrt(1-4*z))/(2*z)G2