OFFSET
1,3
COMMENTS
In the sum formula below, changing n! to n in the outer summation yields A161664.
FORMULA
For n>1: a(n) = Sum_{h=1..n!} Sum_{m=1..1 + 2*floor(n/2 - 1/2)} Sum_{k=1 + floor(h/(m + 1))..floor(h/m - 1/m)} 1.
EXAMPLE
The fractions, of which a(n) is the numerator, begin: -1/4, 0, 7, 190, 5826, ...
MATHEMATICA
Numerator[Table[-1/4*n!*(2 + n!)*(-2 + 1/(1 + Floor[n/2 - 1/2])) - n!*Sum[1/m, {m, 1, 1 + 2*Floor[n/2 - 1/2]}], {n, 1, 17}]]
CROSSREFS
KEYWORD
sign,frac
AUTHOR
Mats Granvik, Dec 31 2023
STATUS
approved