OFFSET
1,3
COMMENTS
See A378720 for more details.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..365
MATHEMATICA
a[n_] := Block[{p, q = Prime@ Range@ n}, p = Fold[Times, 1, q]; q = Most@ q; Plus @@ Times @@@ Subsets[q -1, {n -3}]/p]; a[1] = 0; Denominator@ Array[a, 21]
PROG
(PARI) a(n) = {my(v = primes(n), q = vecextract(apply(x -> x-1, v), "^-1"), p = vecprod(v), prd = vecprod(q)/p, sm = 0, sb); forsubset([#q, 2], s, sb = vecextract(q, s); sm += 1/vecprod(sb)); denominator(prd * sm); }
CROSSREFS
KEYWORD
nonn,easy,frac,new
AUTHOR
Robert G. Wilson v and Amiram Eldar, Dec 05 2024
STATUS
approved