Right well, long division is one way, but here is a similar method which is quicker called synthetic division.
so one root is 2+i, so the conjugate of the complex number is another root. Hence 2-i is a root. So your cubic can be factored as three linear factors, (a-(2+i)) , (a- (2-i) ) and (Pa+Q) where P and Q are constants. (You want to know P and Q to find the other root).
Hence
a3-3a2+a+5 = (a-(2+i))(a-(2-i))(Pa+Q)
to make life simple instead of expanding out the entire right side. In the right side, the product of the first terms will give you the first term on the left. i.e. (a)(a)(Pa) = a3 => P=1.
The product of the last terms on the right side gives the last term on the left side.
i.e. -(2+i)*-(2-i)(Q) = 5, you can get Q and find the third root.
Another method you could have used is this:
For [itex]Ax^3+Bx^2+Cx+D=0 \ with \ roots \ \alpha,\beta,\gamma[/itex]
(your equation is the same, just that I replaced 'a' with 'x')
the sum of the roots is given by -B/A
so that [itex]\alpha+\beta+\gamma = \frac{-B}{A}[/itex]
You know what two of the roots are, so you want to find the third. You have the above equation relating the roots, so the third is easy to find.