Saturday, September 25, 2010

Turtle Diophantine




If you spend exactly 920 pesos, how many pizzas can you buy at @160 and @120
http://en.wikipedia.org/wiki/Diophantine_equation#Linear_Diophantine_equations
http://wiki.sugarlabs.org/go/File:Turtle_Blocks_Activity_Diophantine.ta

Update 26 September
Blank asks Does yours work ok with:

small $11
large $17
total $1000

Thanks for the alternate solution. Yes, my solution works for all (positive) integers. It uses repeat until rather than repeat 10 in the solution you supplied. If there are a large number of solutions, they will print off screen though.


en espaƱol in Spanish

Labels: , ,

2 Comments:

Blogger DanielAjoy said...

Did you see these other two solutions:

http://wiki.laptop.org/go/Aplicacion_Problema_de_Pizzas#TortugArte

http://wiki.laptop.org/go/File:TurtleArtPizza.jpg

Does yours work ok with:

small $11
large $17
total $1000

Sunday, September 26, 2010 3:05:00 AM  
Blogger Unknown said...

Thanks Blank. I have replied in the blog above

Sunday, September 26, 2010 7:15:00 AM  

Post a Comment

<< Home