The answer is 43.
Notice
that combinations of 6 and 9 produce multiples of 3
starting at 6.
Thus we have 6, 9, 12,
15..... 30, 33,
36, 39, 42, 45,
48....
With 20 in the mix we
have additional multiples of 3 starting at 26
Thus we have 20, 26, 29,
32, 35, 38,
41, 44, 47,
50....
With 40 in the mix we have
additional multiples of 3 starting at 46.
Thus we have 40, 46, 49.... This fills the last gap.
This leaves 43 as the largest number of donuts that cannot be filled.
Correct solutions were sent by Travis Prather, Leslie Epperson, Leon Eskenazi, and John Bradshaw.