OFFSET
2,3
FORMULA
a(n) = 2*A039734(n)-prime(n). - R. J. Mathar, May 03 2021
MAPLE
A039739 := proc(n)
local p, maxmod, q, qpiv ;
p := ithprime(n) ;
for j from 1 to n-1 do
q := ithprime(j) ;
if j = 1 then
qpiv := q ;
maxmod := modp(p, q) ;
else
if modp(p, q) > maxmod then
maxmod := modp(p, q) ;
qpiv := q ;
end if;
end if;
end do:
2*qpiv-p ;
end proc:
seq(A039739(n), n=2..80) ; # R. J. Mathar, May 03 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved