OFFSET
1,2
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(2n-1) = 1 and a(2n) = A000146(n)* A002445(n) - A000367(n) for n > 0. - Thomas Ordowski, May 06 2021
EXAMPLE
1/2, 5/6, 1/2, 31/30, 1/2, 41/42, 1/2, 31/30, 1/2, 61/66, 1/2, 3421/2730, 1/2, 5/6, 1/2, 557/510, ...
MATHEMATICA
a[n_] := 1/(Select[Divisors[n], PrimeQ[# + 1]&] + 1) // Total // Numerator;
Array[a, 100] (* Jean-François Alcover, Sep 20 2020 *)
PROG
(PARI) a(n) = numerator(sumdiv(n, d, if (isprime(d+1), 1/(d+1)))); \\ Michel Marcus, May 06 2021
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
EXTENSIONS
a(57)-a(64) from John Cerkan, Mar 21 2018
STATUS
approved