Răspuns :
Fie s-suma de bani
1. pt caiete a cheltuit s/2-1
rest r1
2. pt carte r1/3+5
rest r2=29 lei
restul r2=2r1/3-5 (adica r1-(r1/3+5)=2r1/3-5
29=2r1/3-5⇒ 2r1/3=34 lei⇒ r1=34*3/2=51 lei
dar r1= s-(s/2-1)=s/2+1
51=s/2+1⇒ s/2=50 lei⇒ s=100 lei
verificare 100/2-1=49 lei caiete
rest r1= 100-49=51
51/3+5=17+5=22
rest r2=51-22=29 lei
1. pt caiete a cheltuit s/2-1
rest r1
2. pt carte r1/3+5
rest r2=29 lei
restul r2=2r1/3-5 (adica r1-(r1/3+5)=2r1/3-5
29=2r1/3-5⇒ 2r1/3=34 lei⇒ r1=34*3/2=51 lei
dar r1= s-(s/2-1)=s/2+1
51=s/2+1⇒ s/2=50 lei⇒ s=100 lei
verificare 100/2-1=49 lei caiete
rest r1= 100-49=51
51/3+5=17+5=22
rest r2=51-22=29 lei