6c is always divisible by 3. Therefore, a+b+d is divisible by 3, and c can be any digit. Let abd be a 3-digit number from 000 to 999. There are 334 numbers from 000 to 999 that are divisible by 3. Therefore, there are 334 numbers for abd. Since c can be any digit, there are 334*10=3340 quadruplets (a, b, c, d).