Theoretical study of C3, C−3 and C+3