Prime Factory

a + b + c + d + a b c d = 2018 a+b+c+d+abcd=2018 a , b , c , d a,b,c,d are primes(not necessarily distinct),and a b c d a\le b\le c\le d .How many solutions of ( a , b , c , d ) (a,b,c,d) are there?


Try my set here

0 2 3 4 1

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Zico Quintina
May 26, 2018

A parity argument suffices here. If 2 \ 2 \ is one of the primes, then a + b + c + d \ a + b + c + d \ will be odd, but a b c d \ abcd \ will be even; if 2 \ 2 \ is not one of the primes, then a + b + c + d \ a + b + c + d \ will be even, but a b c d \ abcd \ will be odd. Neither possibility can give an even answer.

Do you notice that a,b,c,d are not necessarily distinct,because a b c d a\le b\le c \le d ?

X X - 3 years ago

Log in to reply

Yup, totally missed that! Will re-think when I get a chance.

zico quintina - 3 years ago
X X
May 27, 2018

If there are 0,1,or 3 even numbers in a , b , c , d a,b,c,d ,then a + b + c + d + a b c d a+b+c+d+abcd will be odd.

If there are 4 even numbers, 2 + 2 + 2 + 2 + 16 = 24 2018 2+2+2+2+16=24\ne2018 .

So there are 2 even numbers,that means a = b = 2 , c + d + 4 c d = 2014 a=b=2,c+d+4cd=2014 .

2014 1 ( m o d 3 ) 2014\equiv1\pmod3

If c d 1 ( m o d 3 ) , c + d + 4 c d 0 ( m o d 3 ) c\equiv d\equiv1\pmod3,c+d+4cd\equiv0\pmod3 .

If c d 2 , c + d + 4 c d 2 ( m o d 3 ) c\equiv d\equiv 2,c+d+4cd\equiv2\pmod3

If c 2 , d 1 ( m o d 3 ) c\equiv 2,d\equiv1\pmod3 or c 1 , d 2 ( m o d 3 ) , c + d + 4 c d 2 ( m o d 3 ) c\equiv 1,d\equiv2\pmod3,c+d+4cd\equiv2\pmod3 .

So c = 3 c=3 ,solve for d d and get d d is not a prime number.

The only prime factors of 2018 are 2 and 1009. Easy to find out that it won't work :)

Did you factorize a + b + c + d + a b c d a+b+c+d+abcd ?

X X - 3 years ago

Log in to reply

Hmmm I reread the problem. Thought it was about prime factors of 2018. I now realize that would be trivial haha. Never mind my solution.

Peter van der Linden - 3 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...