+0  
 
0
405
3
avatar

Jai alai balls come in boxes of 8 and 17, so that 25 balls (one small box and one large box) can be purchased without having to break open a box, but 26 balls cannot. Find the maximum number of balls that cannot be bought without breaking boxes.

 Oct 15, 2020
 #1
avatar
0

Maximum number of balls that you cannot buy without breaking boxes = 111.

 

f=0;a=0; b=0;c=8*a;d=17*b; e =c+d;f=sort(f,c,d,e); a++;if(a<50, goto3, 0);a=0;b++;if(b<50, goto3, 0);z=f;
i=0; g=x=z[0]; goto next;loop: p=x; x=z[i]; if(x!=p, g=(g,x), 0);next: i++; if(i

 Oct 15, 2020
 #2
avatar+2094 
-2

It's hard to read what you are trying to say, Guest. I'd like to know how to solve this one, too, so if possible can you edit your post? Thanks laugh

CalTheGreat  Oct 15, 2020
 #3
avatar
0

[8 x 17] - [8 + 17] = 111 is the largest number that you cannot make without breaking a box.

 

Try another example: 17 and 11 =[17 x 11] - [17+11] = 159

Guest Oct 15, 2020

3 Online Users

avatar