Simplify (a+1)/(2a)+3/(a^2)