OFFSET
1,2
LINKS
Gheorghe Coserea, Table of n, a(n) for n = 1..200
P. J. Cameron, M. Gadouleau, J. D. Mitchell, Y. Peresse, Chains of subsemigroups, arXiv preprint arXiv:1501.06394 [math.GR], 2015.
O. Ganyushkin and I. Livinsky, Length of the inverse symmetric semigroup, Algebra Discrete Math., 12 (2011) 64-71.
MATHEMATICA
a[ n_] := Sum[ Binomial[ n, k] (Ceiling[3 k/2] - Total[IntegerDigits[ k, 2]] + 1) + Binomial[ Binomial[ n, k], 2] k! - 1, {k, n}]; (* Michael Somos, Feb 25 2014 *)
PROG
(PARI)
A007238(n) = ceil(3*n/2) - hammingweight(n) - 1;
a(n) = { sum(i = 1, n+1, my(Ni = binomial(n, i-1));
Ni * (A007238(i-1) + 2) + Ni*(Ni-1)/2 * (i-1)! - 1) };
vector(25, n, a(n)) \\ Gheorghe Coserea, May 15 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
James Mitchell, Oct 13 2013
STATUS
approved