Solution :

Note that  is divisible by 7. Since  0, 1, 2, 4 (mod 7),  (mod 7) if and only if  (mod 7). But in this case  is divisible by 49. Therefore the number of required pairs is .