https://twitter.com/yuya_lz/status/702767994053615616/photo/1
į´ æ° \(p,q\) ãĢããŖãĻ襨ãããæ° \(p^q+q^p\) ãį´ æ°ã§ãããããĒ \((p,q)\) ãŽįĩãŋåãããæąãã.
åŽéãĢåŽé¨ãããã¨äēæŗãįĢãŖãĻããžã:
require 'prime'
N=1000
Prime.each(N) {|q1|
Prime.each(N) {|q2|
r = q1**q2 + q2**q1
if r.prime?
p [q1,q2]
end
}
}
\(p,q\) ãå ąãĢåĨæ°ãåŗãĄ3äģĨä¸ãŽį´ æ°ã§ããå ´åã \(p^q+q^p\) ãåļæ°ã ãã2ããã¯å¤§ãããã ããããĄã ã¨ãããĢåãã. åžãŖãĻãŠãĄããä¸æšã¯2ã§ã\(p=2\) ã¨ãã. \(p^q+q^p = 2^q + q^2\).
ã§ãžããããããåŽé¨ããĻåããŖããã¨ãĒãã ããŠã \(q\) ã3ãŽåæ°ã§ã¯ãĒãį´ æ°ãŽã¨ãã \(2^q+q^2\) ã¯3ãŽåæ°ã§ãã.
\(2^q\) ãŽ3ãŽå°äŊã¨ãããŽã¯ã \(q=1,2,3,4,5,...\) ãĢã¤ããĻã \(2^q \bmod 3=2,1,2,1,...\) ã§ãããã¨ã \(q\) ãåĨæ°ãĢéã㨠\(2^q \bmod 3=2,2,2...\) ã§ãããã¨ã¯ããåãã.
\(q\) ã \(3n+1\) ã§čĄ¨ããį´ æ°ãŽã¨ãã \((2^q) \bmod 3=2\) ã§ãã.
\((2^q+q^2) \bmod 3 = (2 + (3n+1)^2) \bmod 3=0\)
ã§ãããŽã§ã\(q\) ãããããį´ æ°ãĒãã°ãããã¯3ãŽåæ°ã§ãããŽã§ãį´ æ°ã§ã¯ãĒã (ããĄãã3čĒäŊã§ã¯ãĒããã¨ã¯č¨ããĒãã¨ãããĒãã).
å ¨ãåæ§ãĢã\(q\) ãããããåŊĸãŽį´ æ°ãĒãã°ã \((2^q) \bmod 3=2\) ã§ããŖãĻ \((2^q+q^2) \bmod 3 = (2 + (3n+2)^2) \bmod 3=0\) ã§ãããŖãąã3ãŽåæ°ã§ãã. 3ã§ã¯ãĒããŽã§åææ°ã§ãã.
\(q\) ã \(3n\) ã§čĄ¨ãããį´ æ°ã§ãããĒãã°ã\(q=3\) ã§ãã. åŽéãĢč¨įŽãããã¨ã§ã\(2^q+q^2\) ãį´ æ°ã§ãããã¨ãč¨ãã.