The five-digit positive integer 4B5B2 is divisible by 3 exactly when the sum of its digits, 4+B+5+B+2=2B+11 is divisible by 3. Checking the possible values of B, Value of B 1 2 3 4 5 6 7 8 9 Value of 2B+11 13 15 17 19 21 23 25 27 29 we get that 2B+11 is divisible by 3 when B=2, B=5 and B=8. Solution 1 Since ABABA is not divisible by 3, then A+B+A+B+A=3A+2B is not divisible by 3. Since 3A is divisible by 3 for all possible values of the digit A, then if 2B were also divisible by 3 (that is, if B=3, 6, 9), it would be the case that 3A+2B is divisible by 3. Since 3A+2B is not divisible by 3, then 2B cannot be divisible by 3 and so the possible values of B are 1, 2, 4, 5, 7, 8. Since ABABA is divisible by 4, then the two-digit positive integer BA is divisible by 4. For each of the possible values of B, namely B=1, 2, 4, 5, 7, 8, we determine the values of A for which BA is divisible by 4 . For example when B=1, the two-digit positive integer 1A is divisible by 4 exactly when A=2 or A=6. In the table below, we determine the remaining pairs A and B that are possible. B A (A,B) 1 2, 6 (2,1), (6,1) 2 4, 8 (4,2), (8,2) 4 4, 8 (4,4), (8,4) 5 2, 6 (2,5), (6,5) 7 2, 6 (2,7), (6,7) 8 4, 8 (4,8), (8,8) Thus, there are 12 different pairs of non-zero digits A and B that are possible. Solution 2 Since ABABA is divisible by 4, then it is also divisible by 2 and thus even. Since ABABA is even, then the ones digit is even, and so the possible values of A are 2, 4, 6, 8. Since ABABA is divisible by 4, then the two-digit positive integer BA is divisible by 4. For each of the possible values of A, namely A=2, 4, 6, 8, we determine the values of B for which BA is divisible by 4 . For example when A=2, the two-digit positive integer B2 is divisible by 4 exactly when $B=1, 3, 5, 7, and }
9.WhenA=4, the two-digit positive integer


B4isdivisibleby4exactlywhenB=2, 4, 6, and }
8.WhenA=6, the two-digit positive integer


B6isdivisibleby4exactlywhenB=1, 3, 5, 7, and }
9.WhenA=8, the two-digit positive integer


B8isdivisibleby4exactlywhenB=2, 4, 6, and }
8. Finally, we consider the fact that


ABABA is not divisible by 3. As was shown in Solution 1, the possible values of


Bare1,2,4,5,7,8(B= 3, 6, 9). Combining this information with the previous values of


AandB, we get that the possible pairs of non-zero digits


(A, B)are(2,1),(2,5),(2,7),(4,2),(4,4),(4,8),(6,1),(6,5),(6,7),(8,2),(8,4),and(8,8). Thus, there are 12 different pairs of non-zero digits


AandBthatarepossible.Ift=ACA2× BACisdivisibleby15,thent is divisible by both 5 and 3. An integer is divisible by 5 exactly when its ones digit is 0 or 5, and so


ACA2isnotdivisibleby5.Sincet=ACA2× BACisdivisibleby5andACA2isnot,thenBACmustbedivisibleby5,whichmeansthatC=5(sinceCisanon−zerodigit).SubstitutingC=5,wegett=A5A2× BA5.Sincet is divisible by 3 and 3 is a prime number, then at least one of


A5A2orBA5isdivisibleby3,andsoA+5+A+2=2A+7isdivisibleby3,orB+A+5isdivisibleby3,orbotharedivisibleby3.Sincetisnotdivisibleby12,buttisdivisibleby3,thent is not divisible by 4. The three-digit integer


BA5 is not divisible by 2 (and thus not divisible by 4) for all possible values of


A, and so the four-digit integer


A5A2 must not be divisible by 4 . The four-digit integer


A5A2 is divisible by 4 when the two-digit integer


A2isdivisibleby 4,orwhenA=1,3,5,7,or9,andsothepossiblevaluesofAare2,4,6,8.Finally,wereturntotherequirementthatt=A5A2× BA5 is divisible by 3, meaning that at least one of


2A+7orB+A+5isdivisibleby3.WhenA=2,2A+7=11whichisnotdivisibleby3andsoB+A+5=B+7mustbedivisibleby3.B+7isdivisibleby3exactlywhenB=2,5,or8,andsothereare3triplesA,B,C that are possible in this case. When


A=4,2A+7=15whichisdivisibleby3,whichmeansthatB can be equal to any non-zero digit, and so there are 9 triples


A,B,C that are possible in this case. When


A=6,2A+7=19whichisnotdivisibleby3andsoB+A+5=B+11mustbedivisibleby3.B+11isdivisibleby3exactlywhenB=1,4,or7,andsothereare3triplesA,B,C that are possible in this case. When


A=8,2A+7=23whichisnotdivisibleby3andsoB+A+5=B+13mustbedivisibleby3.B+13isdivisibleby3exactlywhenB=2,5or8,andsothereare3triplesA,B,C that are possible in this case. Therefore, there are


3+9+3+3=18 different triples of non-zero digits


A,B,C$
that are possible.