Unknown number

Unknown number is divisible by exactly three different primes. When we compare these primes in ascending order, the following applies:
• Difference first and second prime number is half the difference between the third and second prime numbers.
• The product of the difference the second with the first primes
and difference the third and the second prime number is a multiple of 17.

Determine the smallest number that has all the above properties.

Result

n =  2014

Solution:

2014= 2 × 19 × 53
$primes = array(2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67);
for($a=0;$a<count($primes); $a++)
{
    for($b=$a+1;$b<count($primes); $b++)
    {
        for($c=$b+1;$c<count($primes); $c++)
        {
            $p1 = $primes[$a];
            $p2 = $primes[$b];
            $p3 = $primes[$c];

            if($p2-$p1 == 0.5*($p3-$p2) &&  mod(($p2-$p1)*($p3-$p2),17)==0)
            {
                $rv[$p1*$p2*$p3] = "$p1 $p2 $p3";
            }

        }
    }

}
ksort($rv);
print_r($rv);

Solution in text n =







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:

Next similar examples:

  1. Divisors
    divisors The sum of all divisors unknown odd number is 2112. Determine sum of all divisors of number which is twice of unknown numbers.
  2. 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?
  3. Combinations
    circles How many different combinations of two-digit number divisible by 4 arises from the digits 3, 5 and 7?
  4. Amazing number
    numbers4 An amazing number is name for such even number, the decomposition product of prime numbers has exactly three not necessarily different factors and the sum of all its divisors is equal to twice that number. Find all amazing numbers.
  5. Numbers
    primes Write smallest three-digit number, which in division 5 and 7 gives the rest 2.
  6. Chebyshev formula
    ChebyshevSpiral To estimate the number of primes less than x is used Chebyshev formula: ? Estimate the number of primes less than 30300537.
  7. Sum of two primes
    prime_1 Christian Goldbach, a mathematician, found out that every even number greater than 2 can be expressed as a sum of two prime numbers. Write or express 2018 as a sum of two prime numbers.
  8. Examination
    examination The class is 21 students. How many ways can choose two to examination?
  9. Three unknowns
    matrix_1 Solve the system of linear equations with three unknowns: A + B + C = 14 B - A - C = 4 2A - B + C = 0
  10. Candies
    bonbons_2 In the box are 12 candies that look the same. Three of them are filled with nougat, five by nuts, four by cream. At least how many candies must Ivan choose to satisfy itself that the selection of two with the same filling? ?
  11. Cards
    cards_2 Suppose that are three cards in the hats. One is red on both sides, one of which is black on both sides, and a third one side red and the second black. We are pulled out of a hat randomly one card and we see that one side of it is red. What is the probabi
  12. Sequence
    a_sequence Write the first 7 members of an arithmetic sequence: a1=-3, d=6.
  13. Elimination method
    rovnice_1 Solve system of linear equations by elimination method: 5/2x + 3/5y= 4/15 1/2x + 2/5y= 2/15
  14. Sequence 2
    seq2 Write the first 5 members of an arithmetic sequence a11=-14, d=-1
  15. AP - simple
    sigma_1 Determine the first nine elements of sequence if a10 = -1 and d = 4
  16. Sequence
    seq_1 Write the first 6 members of these sequence: a1 = 5 a2 = 7 an+2 = an+1 +2 an
  17. Line
    skew_lines It is true that the lines that do not intersect are parallel?