Cookies and Pies

Number Theory Level pending

Cookies cost $8 and pies cost $6 each.How many different combinations of cookies and pies can you buy for between $48 and $72 inclusive?

36 38 35 37

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Giorgos K.
Mar 16, 2018

Mathematica

Length@Flatten[Table[IntegerPartitions[i,100,{8,6}],{i,48,72}],1]

returns 37

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...