 mersenneforum.org Primes p such that p^2+p+1=q is prime, and p is largest prime factor of q^3-1
 User Name Remember Me? Password
 Register FAQ Search Today's Posts Mark Forums Read 2022-04-17, 17:28 #1 Stargate38   "Daniel Jackson" May 2011 14285714285714285714 727 Posts Primes p such that p^2+p+1=q is prime, and p is largest prime factor of q^3-1 I was wondering if there's even such a prime p that fits the following: 1. p^2+p+1=q is prime (seems that p must be of the form 6n-1, other than 2 and 3). 2. Largest prime factor of q^3-1 is p. So far, I haven't found any that fit #2 (searched up to p=997), but I'm guessing #1 has infinitely many solutions. Anyone know how I might do this in PARI/gp? I want to search up to at least p=9999991.   2022-04-17, 18:03 #2 mathwiz   Mar 2019 3·101 Posts How about: Code: ? forprime(p = 2, 10000000, q=p*p+p+1; if(isprime(q) && vecmax(factorint(q^3-1)[, 1]) == p, print(p))) 125669 138209 254537 309629 532187 1107497 1126523 1210103 1225817 1287329 1524431 1534349 1539719 1720181 1793123 1814609 1861151 1920731 1932071 1974881 2270423 2366057 2490479 2494931 2530373 2586377 2725841 2755943 2782667 2885837 ...   2022-04-18, 14:22 #3 Dr Sardonicus   Feb 2017 Nowhere 2·5·599 Posts I note that, if p == 1 (mod 3) then q = p^2 + p + 1 is divisible by 3. Also, q^3 - 1 = (q-1)*(q^2 + q + 1). If p > 2 then p is the largest prime factor of q-1 (proof: exercise). Also, q == 1 (mod p) so q^2 + q + 1 == 3 (mod p). So if p > 3 then p does not divide q^2 + q + 1, and we want the largest factor of q^2 + q + 1 to be less than p. Now N = q^2 + q + 1 is slightly larger than p^4, so we want the largest factor of N to be less than N^(1/4). The probability of a "random" number being that "smooth" is given by the "Dickman function" evaluated at 1/4, which is approximately .00491.  Thread Tools Show Printable Version Email this Page Similar Threads Thread Thread Starter Forum Replies Last Post Hugo1177 Miscellaneous Math 5 2021-02-11 07:40 dabaichi News 571 2020-10-26 11:02 kurtulmehtap Math 7 2011-04-18 17:27 Batalov GMP-ECM 14 2010-04-19 17:17 wfgarnett3 Lounge 7 2002-11-25 06:34

All times are UTC. The time now is 04:19.

Sun Oct 2 04:19:03 UTC 2022 up 45 days, 1:47, 0 users, load averages: 1.57, 1.70, 1.46

Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔