0

This is a homework question, so I'm looking for some help to get started with the problem since I cannot think of a good way to do so. I know that we can say the integers a and b can be written as $a = p_1p_2...p_k$ and $b = q_1q_2...q_k$ where $p_i$ and $q_i$ are prime numbers. After this I'm stuck and don't know how to continue. Any help is appreciated, thank you.

Bill Dubuque
  • 272,048
vinbera
  • 11

3 Answers3

0

Hint: Try showing that every odd number can be written as the difference of two squares. Handle the prime number 2 separately.

dexter04
  • 1,971
0

Note that $a^{2}-b^{2} = (a + b)(a - b)$. Note that every odd number, and thus every odd prime, can be written this way by taking $a-b = 1$. Thus, every prime except $2$ can be written in the form $a^{2}-b^{2}$. $\blacksquare$

Joshua Wang
  • 6,103
0

Every odd number $2n+1$ can be written as the sum of two consecutive numbers: $n,n+1$. The difference between two consecutive numbers is simply $1$. We see that $((n+1)+n)\cdot ((n+1)-n)=(n+1)^2-n^2=2n+1$, so every odd number, to include every odd prime number, can be readily represented as the difference of two squares. Can you finish by showing why the only even prime, $2$, cannot be so represented?

  • Thank you! 2 cannot be represented this way because we would say (a+b)=2 and (a-b) =1, since 2 is prime. Then solving for a with these equations would result in a= 3/2, which does not follow the integer difference of squares format. – vinbera Nov 06 '20 at 16:06