Theoretical study of AlC3