Answer

The largest number of McNuggets that you cannot purchase is 43.

There is a simple way to find this number. Write down a list of number starting at 1.

12345678910
11121314151617181920
21222324252627282930
31323334353637383940
41424344454647484950

Mark off the numbers you know you can make with only one of each box

12345X78X10
111213141516171819X
21222324252627282930
31323334353637383940
41424344454647484950

Now move to the smallest number you know you can make (6), add one box of each 6, 9, and 20 and mark off these values.

12345X78X10
11X1314X16171819X
2122232425X27282930
31323334353637383940
41424344454647484950

Now go to the next lowest number you know you can make (9) and add one of each box again.

12345X78X10
11X1314X1617X19X
2122232425X2728X30
31323334353637383940
41424344454647484950

Continue this process for a while…

12345X78X10
11X1314X1617X19X
X2223X25XX28XX
31XX34XX37XXX
XX43XXXXXXX
XXXXXXXXXX

And you'll end up with all the number you know you can make marked.

Notice that if you ever get six consecutive numbers that you know you can make, you can add one box of 6 to each of these and you will be able to make any other larger number. Since we have the values 44-49, we can make any number larger than 43.