Factoring using the Magic X and the Double Magic X ( AC method)