OFFSET
1,3
LINKS
Sumit Kumar Jha, An identity for the sum of inverses of odd divisors of n in terms of the number of representations of n as a sum of r squares, arXiv:2007.04243 [math.GM], 2020.
FORMULA
a(n) = (-1)^(n+1) * A098986(n) for n>=1.
EXAMPLE
1, 1, 4/3, 1, 6/5, 4/3, 8/7, 1, 13/9, 6/5, 12/11, 4/3, 14/13, 8/7, 8/5, 1, ...
MATHEMATICA
a[n_] := Numerator @ DivisorSum[n, 1/# &, OddQ[#] &]; Array[a, 100] (* Amiram Eldar, Jul 09 2020 *)
PROG
(PARI) a(n) = numerator(sumdiv(n, d, if (d%2, 1/d)));
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Michel Marcus, Jul 09 2020
STATUS
approved