A020543 a(0) = 1, a(1) = 1, a(n+1) = (n+1)*a(n) + n.
1, 1, 3, 11, 47, 239, 1439, 10079, 80639, 725759, 7257599, 79833599, 958003199, 12454041599, 174356582399, 2615348735999, 41845579775999, 711374856191999, 12804747411455999, 243290200817663999, 4865804016353279999
Offset: 0
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..200
- Daniel Birmajer, Juan B. Gil, David S. Kenepp, and Michael D. Weiner, Restricted generating trees for weak orderings, arXiv:2108.04302 [math.CO], 2021.
- Index entries for sequences related to Bernoulli numbers.
Crossrefs
Programs
-
Magma
[2*Factorial(n)-1: n in [0..25]]; // Vincenzo Librandi, Sep 30 2013
-
Mathematica
lst={1};s=1;Do[s+=(n+=s*n);AppendTo[lst, s], {n, 0, 5!}];lst (* Vladimir Joseph Stephan Orlovsky, Oct 10 2008 *) FoldList[#1*#2 + #2 - 1 &, 1, Range[20]] (* Robert G. Wilson v, Jul 07 2012 *) Table[2 n! - 1, {n, 0, 25}] (* Vincenzo Librandi, Sep 30 2013 *)
Formula
E.g.f.: (-2 + exp(x) - x*exp(x))/(1-x). - Ralf Stephan, Feb 18 2004
a(n) = 2*n! - 1. - Gary W. Adamson, Jan 07 2008
a(0) = a(1) = 1, a(n) = a(n-1) * n + (n-1) for n >= 2. - Jaroslav Krizek, Jan 23 2010
a(n) ~ 2*sqrt(2*Pi*n)*n^n/exp(n). - Ilya Gutkovskiy, Aug 02 2016
Extensions
Better description from Benoit Cloitre, Dec 29 2001
Comments