login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A362296
Greatest common divisor of composite numbers between the n-th and (n+1)st primes.
1
4, 6, 1, 12, 1, 18, 1, 1, 30, 1, 1, 42, 1, 1, 1, 60, 1, 1, 72, 1, 1, 1, 1, 1, 102, 1, 108, 1, 1, 1, 1, 138, 1, 150, 1, 1, 1, 1, 1, 180, 1, 192, 1, 198, 1, 1, 1, 228, 1, 1, 240, 1, 1, 1, 1, 270, 1, 1, 282, 1, 1, 1, 312, 1, 1, 1, 1, 348, 1, 1, 1, 1, 1, 1, 1, 1, 1
OFFSET
2,1
LINKS
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
Cf. A056831 (LCM), A061214 (product).
Sequence in context: A322778 A079160 A230256 * A333668 A193293 A258220
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Apr 15 2023
STATUS
approved