R.<x,c,q> = PolynomialRing(ZZ)
def E(n):
if n == 0:
return R(1)
previous, current = R(1), (1-c)*x
for j in range(1,n):
m = j//2
A = c*q^(3*m-1) if j % 2 == 0 else q^m
previous, current = current, (1-c*q^j)*x*current-A*previous
return current
[E(n) for n in range(7)]The generator applies the denominator-cleared recurrence in the integer polynomial ring. Every stored coefficient vector was compared with the separately implemented even and odd finite sums in Kim and Stanton, Proposition 4.16. Known initial values and eight deliberately wrong coefficient, sign, family, normalization, index or inexact-type controls test the checker.
Supplementary exact checks comprise 21 continuant determinants, both connection formulas through even degree 6, and 28 classical scaling limits at positive integer orders. The continuants share the recurrence coefficients; the finite sums and connections share the cited definitions. Reproducible generator, executable checks, measured results, argument-selection justification, dependency versions and the matching archived skill manifest are attached.