OFFSET
1,2
EXAMPLE
s t denominator
p1 p2 p2-1 p1-1 s/t (s/t)
2 3 2 1 2/1 1 = a(1)
3 5 4 2 2/1 1
5 7 6 4 3/2 2 = a(2)
7 11 10 6 5/3 3 = a(3)
11 13 12 10 6/5 5 = a(4)
13 17 16 12 4/3 3
17 19 18 16 9/8 8 = a(5)
19 23 22 18 11/9 9 = a(6)
23 29 28 22 14/11 11 = a(7)
29 31 30 28 15/14 14 = a(8)
31 37 36 30 6/5 5
37 41 40 36 10/9 9
41 43 42 40 21/20 20 = a(9)
43 47 46 42 23/21 21 = a(10)
PROG
(Python)
from itertools import islice
from math import gcd
from sympy import nextprime
def A390028_gen(): # generator of terms
c, p, q = 0, 2, 3
while True:
if (d:=(p-1)//gcd(p-1, q-1))>c:
yield d
c = d
p, q = q, nextprime(q)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Oct 22 2025
STATUS
approved
