OFFSET
0,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
MATHEMATICA
f[n_]:= Mod[HarmonicNumber[n]n!/Floor[n/2]!, n + 1]; Table[f[n], {n, 0, 100}] (* Ray Chandler, Dec 11 2006 *)
PROG
(PARI) a(n) = (n!*sum(k=1, n, 1/k)/(n\2)!)%(n+1);
vector(100, n, n--; a(n) ) \\ G. C. Greubel, Aug 05 2019
(Sage) [mod(harmonic_number(n)*factorial(n)/factorial(floor(n/2)), n+1) for n in (0..100)] # G. C. Greubel, Aug 05 2019
(GAP)List([0..100], n-> (Factorial(n)*Sum([1..n], k-> 1/k)/Factorial(Int(n/2))) mod (n+1) ); # G. C. Greubel, Aug 05 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Nov 28 2006
EXTENSIONS
Extended by Ray Chandler, Dec 11 2006
STATUS
approved