login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A024189 a(n) = ((n+3)!/2)*Sum_{k=1..n} (-1)^(k+1)/(k+3). 1
3, 3, 78, 186, 4008, 15912, 340560, 1931760, 43139520, 321312960, 7611891840, 70589232000, 1783264896000, 19854108288000, 535217663232000, 6967948748544000, 200181525175296000, 2987361024592896000, 91267413626898432000, 1537150149529860096000, 49817611958159130624000 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Harmonic Number.
FORMULA
a(n) = ((n+3)!/12)*(5 - 6*log(2) + 3*(-1)^n*(psi((n+4)/2) - psi((n+5)/2))), psi(x) is the digamma function. - G. C. Greubel, Jan 02 2020
MAPLE
seq( (n+3)!*(5 + 6*add((-1)^k/k, k=1..n+3))/12, n=1..25); # G. C. Greubel, Jan 02 2020
MATHEMATICA
Table[(n+3)!*(5 + 6*Sum[(-1)^k/k, {k, n+3}])/12, {n, 25}] (* G. C. Greubel, Jan 02 2020 *)
PROG
(PARI) a(n) = (n+3)!/2*sum(x=1, n, (-1)^(x+1)/(x+3)) \\ Michel Marcus, Mar 21 2013
(Magma) [Factorial(n+3)*(5 + 6*(&+[(-1)^k/k: k in [1..n+3]]))/12: n in [1..25]]; // G. C. Greubel, Jan 02 2020
(Sage) [factorial(n+3)*(5 + 6*sum((-1)^k/k for k in (1..n+3)))/12 for n in (1..25)] # G. C. Greubel, Jan 02 2020
(GAP) List([1..25], n-> Factorial(n+3)*(5 + 6*Sum([1..n+3], k-> (-1)^k/k))/12 ); # G. C. Greubel, Jan 02 2020
CROSSREFS
Cf. A024188.
Sequence in context: A333827 A213137 A260076 * A217542 A007451 A087542
KEYWORD
nonn
AUTHOR
EXTENSIONS
Terms a(14) and beyond from Andrew Howroyd, Jan 01 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)