東京大学 新領域創成科学研究科 海洋技術環境学専攻 2023年8月実施 第3問
Author
祭音Myyura
Description
素数 a,b を⽤いて ab+ba と表される素数をすべて求めよ。
Find all the prime numbers represented by ab+ba, where a and b are prime numbers.
题目描述
设 a,b 均为素数。求所有仍为素数的数
需要遍历并排除所有可能的素数参数情形,而不只是求一组例子。
- 素数型丢番图分析:按 a,b 是否为 2 分类,利用奇偶性与因数分解判断 ab+ba 何时可能为素数。
Kai
If a,b>2 are odd primes, then ab and ba are both odd, so ab+ba is even and >2.
Hence one of a,b must be 2. Let the other be an odd prime p. Then
ab+ba=2p+p2.
For p=3, note 2p≡2(mod3) (since p is odd) and p2≡1(mod3), so 2p+p2≡0(mod3).
For p=3, 23+32=8+9=17, which is prime.
Also, a=b=2 gives 8, not prime.
Therefore, the only prime of the form ab+ba with a,b prime is
17(from (a,b)=(2,3) or (3,2)).