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.
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
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