Solution:
Answer: 127
Since the value of each digit is restricted to {1,2,…,7}, there is exactly one digit representative of each residue class modulo 7.
Note that 7∣abc if and only if 100a+10b+c≡0(mod7) or equivalently 2a+3b+c≡0. So we want the number of triples of residues (a,b,c) such that at least one of 2a+3b+c≡0, 2b+3c+a≡0, 2c+3a+b≡0 holds.
Let the solution sets of these three equations be S1,S2,S3 respectively, so by PIE and cyclic symmetry we want to find 3∣S1∣−3∣S1∩S2∣+∣S1∩S2∩S3∣.
Clearly ∣S1∣=72, since for each of a and b there is a unique c that satisfies the equation.
For S1∩S2, we may eliminate a to get the system 0≡2(2b+3c)−(3b+c)=b+5c (and a≡−2b−3c), which has 7 solutions (one for each choice of c).
For S1∩S2∩S3⊆S1∩S2, we have from the previous paragraph that b≡−5c and a≡10c−3c≡0. By cyclic symmetry, b,c≡0 as well, so there's exactly 1 solution in this case.
Thus the answer is 3⋅72−3⋅7+1=127.