14 can be expressed as the sum of 2 prime numbers in exactly 2 different ways: 11+3=14 and 7+7=14. In how many ways can 40 be expressed as the sum of 2 prime numbers?
Please explain the solution too. Thankyou so much!
Please explain the solution too. Thankyou so much!
-
Just list primes lower than 40
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37
Now just start at one end & subtract each from 40 & see if the answer is on the list. Once you get higher than 20, you can stop because you've already made all possible pairs.
40 - 2 = 38, no
40 - 3 = 37, yes 3 + 37
40 - 5 = 35, no
40 - 7 = 33, no
40 - 11 = 29, yes 29 + 11
40 - 13 = 27, no
40 - 17 = 23, yes, 23 + 17
40 - 19 = 21, no
There are 3 ways as shown above
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37
Now just start at one end & subtract each from 40 & see if the answer is on the list. Once you get higher than 20, you can stop because you've already made all possible pairs.
40 - 2 = 38, no
40 - 3 = 37, yes 3 + 37
40 - 5 = 35, no
40 - 7 = 33, no
40 - 11 = 29, yes 29 + 11
40 - 13 = 27, no
40 - 17 = 23, yes, 23 + 17
40 - 19 = 21, no
There are 3 ways as shown above
-
3 ways.
3 + 37
11 + 29
17 + 23
Just think of all the pairs of numbers that add to make 40. Examples: 1 + 39, 2 + 38, 3 + 37, etc.
Then pick the ones that are prime numbers. A prime number is a number whose only factors are 1 and the number itself.
3 + 37
11 + 29
17 + 23
Just think of all the pairs of numbers that add to make 40. Examples: 1 + 39, 2 + 38, 3 + 37, etc.
Then pick the ones that are prime numbers. A prime number is a number whose only factors are 1 and the number itself.
-
40=1+39=2+38=3+37=5+35=
40=6+34=7+33=11+29=13+27=14+26
40=17+23=
40=3+37=11+29=17+23 only 3 different ways.
God bless you.
40=6+34=7+33=11+29=13+27=14+26
40=17+23=
40=3+37=11+29=17+23 only 3 different ways.
God bless you.
-
3+37 11+29 17+23
-
3+37
11+29
17+23
only 3 of them.
11+29
17+23
only 3 of them.