Friend numbers
Problem 612
Let's call two numbers friend numbers if their representation in base 10 has at least one common digit.
E.g. 1123 and 3981 are friend numbers.
E.g. 1123 and 3981 are friend numbers.
Let be the number of pairs with such that and are friend numbers.
.
.
Find mod .