Target

Peter, Martin and Jirka were fire in a special target, which had only three fields with values of 12, 18 and 30 points. All boys were firing with the same number of arrows and all the arrows hit the target, and the results of every two boys differed in one point.

Peter's average score was two points better than Martin's and Martin was one point better than Jirka's average.

Find how many arrows each of the boys fired.


Result

n =  6

Solution:

Peter: 30 30 30 30 30 30; AVG = 30
Martin: 30 30 30 30 30 18; AVG = 28
Jirka: 30 30 30 30 30 12; AVG = 27

Program in PHP:
$x = array(12,18,30);
$ch = array();
for($n=1;$n<1000;$n++)
{
    foreach($x AS $xx)
    {
        $ch[0][$n] = $xx;

        foreach($x AS $yy)
        {
            $ch[1][$n] = $yy;
            foreach($x AS $zz)
            {
                $ch[2][$n] = $zz;

                $s0 = array_sum($ch[0]);
                $s1 = array_sum($ch[1]);
                $s2 = array_sum($ch[2]);

                if($s0/$n != 2+$s1/$n || $s1/$n != 1 + $s2/$n)
                {
                    continue;
                }

                echo($n);
                print_r($ch);

            }
         }
    }

}








Leave us a comment of example and its solution (i.e. if it is still somewhat unclear...):

Showing 0 comments:
1st comment
Be the first to comment!
avatar




To solve this example are needed these knowledge from mathematics:

Do you have a linear equation or system of equations and looking for its solution? Or do you have quadratic equation? Looking for a statistical calculator? Looking for help with calculating arithmetic mean? Do you have a system of equations and looking for calculator system of linear equations?

Next similar examples:

  1. Nuts
    orechy Peter has 49 nuts. Walnuts have 3 more than hazelnuts and hazelnut 2 over almonds. Determine the number of wallnuts, almonds and hazelnuts.
  2. Men, women and children
    regiojet On the trip went men, women and children in the ratio 2:3:5 by bus. Children pay 60 crowns and adults 150. How many women were on the bus when a bus was paid 4,200 crowns?
  3. Exam average
    vysvedcenie_2 Average of marks that have on the certificates students of 8.A class in mathematics is exactly 2.45. If we did not add 1 and 3 of sutdents Michael and Alena, who arrived a month ago, it would average exactly 2.5. Determine how many students have class 8.
  4. Three numbers
    trojuhelnikova_cisla What is three numbers which have the property: the sum of the reciprocals of the first and second numbers is 12/7, the first and third 11/24 and the second and the third 3/8.
  5. Theorem prove
    thales_1 We want to prove the sentense: If the natural number n is divisible by six, then n is divisible by three. From what assumption we started?
  6. Average
    chart If the average(arithmetic mean) of three numbers x,y,z is 50. What is the average of there numbers (3x +10), (3y +10), (3z+10) ?
  7. Lord Ram
    sheep When lord Ram founded the breed white sheep was 8 more than black. Currently white sheep are four times higher than at the beginning and black three times more than at the beginning. White sheep is now 42 more than the black. How many white and black sh
  8. Linsys2
    linear_eq_3 Solve two equations with two unknowns: 400x+120y=147.2 350x+200y=144
  9. Team
    football The football team has 11 players. Their average age is 21 years. During the match due to injury, one player withdraws and the average age of the team is 20. How old was injured player?
  10. Difference of two number
    squares2_6 The difference of two numbers is 20. They are positive integers greater than zero. The first number raised to one-half equals the second number. Determine the two numbers.
  11. Ball game
    lopta_3 Richard, Denis and Denise together scored 932 goals. Denis scored 4 goals over Denise but Denis scored 24 goals less than Richard. Determine the number of goals for each player.
  12. Ravens
    havrany On two trees sitting 17 ravens. If 3 ravens flew from first to second tree and 5 ravens took off from second tree then the first tree has 2 times more ravens than second tree. How many ravens was originally on every tree?
  13. Gasoline
    kanyster 35 l of gasoline is to be divided into four canisters so that in the third canister was 5 l less than the first canister, the fourth canister 10 l more than in the third canister and the second canister half what in the first canister. How many liters of.
  14. AP 6
    progression_ao Calculate the first five items of an arithmetic sequence if it is given: a2 – a3 + a5 = 20 a1 + a6 = 38
  15. Cans
    konzervy How many cans must be put in the bottom row if we want 182 cans arrange in 13 rows above so that each subsequent row has always been one tin less? How many cans will be in the top row?
  16. Book
    books_1 Alena read a book at speed 15 pages per day. If she read twice as fast she should read a book four days earlier. How many pages have a book?
  17. Elimination method
    rovnice_1 Solve system of linear equations by elimination method: 5/2x + 3/5y= 4/15 1/2x + 2/5y= 2/15