[see also: calculate]
By computing the second derivative we note that $x=1$ is a maximum point for $f$.
Find integral formulas by means of which the coefficients $c_n$ can be computed from $f$.
This provides an effective means for computing the index.
Computing $f(y)$ can be done by enumerating $A(y)$ and testing each element for membership in $C$.