The code has
???? for the coefficient of C. Replace
???? with
4 and click
Run to find all 13 repeating decimal integers!
Prolog outputs:
Numbers = [111, 222, 333, 444, 481, 518, 555, 592, 629, 666, 777, 888, 999]
Count = 13
Notice the four non-trivial solutions where digits differ:
•
481 ($7 \times 4 = 28$, $3 \times 8 + 4 \times 1 = 28$)
•
518 ($7 \times 5 = 35$, $3 \times 1 + 4 \times 8 = 35$)
•
592 ($7 \times 5 = 35$, $3 \times 9 + 4 \times 2 = 35$)
•
629 ($7 \times 6 = 42$, $3 \times 2 + 4 \times 9 = 42$)
Together with the 9 numbers having $a = b = c$, this gives exactly
13 solutions, matching option
(D) 13.