OFFSET
1,2
LINKS
Daniel Suteu, Table of n, a(n) for n = 1..20
FORMULA
a(n) ~ 1/e * n^(2n+1). - Charles R Greathouse IV, May 28 2015
EXAMPLE
For n=3, a(3) = 3^(3+1) * (3-1)^3 = 3^4 * 2^3 = 81 * 8 = 648.
MATHEMATICA
Array[#^(# + 1) (# - 1)^# &, 20] (* Vincenzo Librandi, May 29 2015 *)
PROG
(Sidef)
func a(n) {
(n-1)**n * n**(n+1);
};
1.to(Math.inf).each { |n|
say a(n);
};
(PARI) a(n)=n^(n+1)*(n-1)^n \\ Charles R Greathouse IV, May 28 2015
(Magma) [n^(n+1) * (n-1)^n: n in [1..20]]; // Vincenzo Librandi, May 29 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Daniel Suteu, May 28 2015
EXTENSIONS
More terms from Vincenzo Librandi, May 29 2015
STATUS
approved