OFFSET
2,1
LINKS
Winston de Greef, Table of n, a(n) for n = 2..10000
FORMULA
For n > 1, a(n)=prime(n)+1 if and only if prime(n+1)=prime(n)+2 and a(n)=1 otherwise.
PROG
(Python)
from sympy import prime, isprime
def A362296(n): return m-1 if isprime(m:=prime(n)+2) else 1
(PARI) a(n) = gcd([prime(n)+1..prime(n+1)-1]); \\ Michel Marcus, Apr 16 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Apr 15 2023
STATUS
approved