A380905 Smallest number k such that k^(2*3^n) - 6 is prime.
3, 5, 23, 7, 433, 2447, 9377, 82597, 134687
Offset: 0
Examples
For n=0, k^(2*3^0) - 6 is prime for the first time at a(0) = k = 3. For n=5, k^(2*3^5) - 6 is prime for the first time at a(5) = k = 2447.
Crossrefs
Programs
-
PARI
a(n) = my(p=3,q=2*3^n); while (!ispseudoprime(p^q-6), p+=2); p; \\ Michel Marcus, Feb 08 2025
-
Python
from sympy import isprime from itertools import count def a(n): return next(k for k in count(2) if k%10 in {3,5,7} and isprime(k**(2*3**n)-6))
Extensions
a(7) from Michael S. Branicky, Feb 24 2025
a(8) from Georg Grasegger, Apr 17 2025
Comments