There will be 1 way to choose C (mod 2) so that the sequence has perfect luck mod 2, 1 way to choose C (mod 3) so it has perfect luck mod 3, 2 ways to choose C (mod 5) so it has perfect luck mod 5, and so on. (Exceptions when p is an odd prime dividing A.)