Abstract: We deal with the problem of obtaining closed formulas for the connection coefficients between orthogonal polynomials and the canonical sequence. We use a recurrence relation fulfilled by these coefficients and symbolic computation with the Mathematica language. We treat the cases of Gegenbauer, Jacobi and a new semi-classical sequence.