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.

A258385 a(n) = n^(n+1) * (n-1)^n.

Original entry on oeis.org

0, 8, 648, 82944, 16000000, 4374000000, 1613775332736, 773738492592128, 467988280328060928, 348678440100000000000, 313842837672100000000000, 335790511878017502425382912, 421272520289832237611045879808, 612530145817540311016457192308736
Offset: 1

Views

Author

Daniel Suteu, May 28 2015

Keywords

Examples

			For n=3, a(3) = 3^(3+1) * (3-1)^3 = 3^4 * 2^3 = 81 * 8 = 648.
		

Crossrefs

Cf. A007778 (n^(n+1)).

Programs

  • Magma
    [n^(n+1) * (n-1)^n: n in [1..20]]; // Vincenzo Librandi, May 29 2015
  • Mathematica
    Array[#^(# + 1) (# - 1)^# &, 20] (* Vincenzo Librandi, May 29 2015 *)
  • PARI
    a(n)=n^(n+1)*(n-1)^n \\ Charles R Greathouse IV, May 28 2015
    
  • Sidef
    func a(n) {
        (n-1)**n * n**(n+1);
    };
    1.to(Math.inf).each { |n|
        say a(n);
    };
    

Formula

a(n) ~ 1/e * n^(2n+1). - Charles R Greathouse IV, May 28 2015
a(n) = A007778(n)*A007778(n-1). - Michel Marcus, Jul 07 2015

Extensions

More terms from Vincenzo Librandi, May 29 2015