Rap:
Sheep
Label one brother A, the other B
The two brothers get $X^2 for the flock of sheep
Brother A gets $(N+1)*10, Brother B gets $N*10+M where M<10
The total $x^2=$(2N+1)*10+M
Now 2N+1 is odd so N=0,1,2,3,4,....
M<10
Look for perfect squares that meet this criterea
& you get 16,36, 196, 256, 576, .... all end in 6 so M=6
So brother A gets $4 more than brother B, and A owes B $2
Mark:
SHEEP
The total amount of money is:
10*(y+1) + 10y + z = 20y + 10 + z = x^2
All squares are equal to 0 or 1 mod 4.
20y + 8 is a multiple of 4
Therefore, 2 + z equals 0 or 1 mod 4
Therefore, z equals 2, 3, 6, or 7.
All squares end in 0, 1, 4, 5, 6, or 9.
Since 6 is the only number in both lists, z = 6.
Therefore, the first brother has 4 more dollars than the second.
The check is for $2.
You guys are the best! You produce answers on the minimum of detail.
We all say the same thing in slightly different ways, amazingly we all have the same result.
Let the total number of sheep be 10x+y, where y<10. The total money raised is (10x+y)^2 = 100x^2 + 20xy + y^2. Regardless of the values of x and y 100x^2 + 20xy will be divisible by 20.
Because the number of $10 bills is odd y^2 mod 20 must be greater than 10 and less than 20. The only values of y where this is true is 4 and 6, where y^2 is either 16 or 36.
Either way there will be 6 $1 bills left over. Before the check the first brother will have $4 more than the second brother.
ICLC
taacqnucae