Unknown number

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

Determine the smallest number that has all the above properties.

Correct answer:

n =  2014

Step-by-step explanation:

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);

2014=21953



Did you find an error or inaccuracy? Feel free to write us. Thank you!







You need to know the following knowledge to solve this word math problem:

Related math problems and questions: