cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A307642 a(n) = n!*Sum_{i=1..n} (Sum_{j=1..i} (i/j)).

Original entry on oeis.org

1, 8, 57, 428, 3510, 31644, 312984, 3380544, 39664080, 502927200, 6858181440, 100135491840, 1559197261440, 25797280723200, 452046655872000, 8364495012249600, 162994310248089600, 3336683369519001600, 71596721810396160000, 1606993396943155200000
Offset: 1

Views

Author

Pedro Caceres, Apr 19 2019

Keywords

Examples

			a(3) = 57 because a(3) = 3!*Sum_{i=1..3} (Sum_{j=1..i} (i/j)).
		

Crossrefs

Cf. A001008/A002805 (harmonic), A182541.

Programs

  • GAP
    List([1..25], n-> n*Factorial(n+1)*(1+2*Sum([2..n+1], j-> 1/j))/4 ); # G. C. Greubel, Jul 15 2019
  • Magma
    [n*Factorial(n+1)*(2*HarmonicNumber(n+1)-1)/4: n in [1..25]]; // G. C. Greubel, Jul 15 2019
    
  • Mathematica
    Array[#!*Sum[Sum[i/j, {j, i}], {i, #}] &, 25] (* Michael De Vlieger, Apr 21 2019 *)
    Table[n*(n+1)!*(2*HarmonicNumber[n+1] -1)/4, {n, 25}] (* G. C. Greubel, Jul 15 2019 *)
  • PARI
    a(n)=n!*sum(i=1, n, sum(j=1, i, i/j)); \\ Michel Marcus, Apr 20 2019
    
  • Sage
    [n*factorial(n+1)*(2*harmonic_number(n+1)-1)/4 for n in (1..25)] # G. C. Greubel, Jul 15 2019
    

Formula

a(n) = n! * Sum_{i=1..n} (Sum_{j=1..i} (i/j)).
a(n) = n * A182541(n+2).
a(n) = (1/4) * n * (n+1)! * (2*harmonic(n+1) - 1).