For A: From 1 to 8000000............ Ok ， It’s time to slove the problem. For example : a=50