OFFSET
1,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
If 2n+1 is prime then a(2n+1) = 2n + 1.
MATHEMATICA
Table[(FactorInteger[2 n + 1][[1, 1]] + FactorInteger[2 n + 1][[-1, 1]])/2, {n, 75}] (* Michael De Vlieger, Mar 28 2015 *)
PROG
(PARI) a(n) = {my(p = factor(2*n+1)[, 1]); (p[1] + p[#p])/2; } \\ Amiram Eldar, Mar 18 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 31 2003
STATUS
approved
