we DO have a linear algebra forum. this post should be there.
if you KNOW the eigenvalues, then you know that A satisfies the polynomial equation:
for convenience, let's write this as:
i suspect you can work out some formula, but it's going to get messy, for example: