Generalizing a sequence of Lambert, Cayley and Ramanujan, Chapoton has recently introduced a polynomial sequence Q n := Q n (x, y, z, t) defined byIn this paper we prove Chapoton's conjecture on the duality formula: Q n (x, y, z, t) = Q n (x + nz + nt, y, −t, −z), and answer his question about the combinatorial interpretation of Q n . Actually we give combinatorial interpretations of these polynomials in terms of plane trees, forests of half-mobile trees, and forests of plane trees. Our approach also leads to a general formula that unifies several known results for enumerating trees and plane trees.