OFFSET
1,2
COMMENTS
REFERENCES
A. D. Adeshola, V. Maltcev, and A. Umar, Combinatorial results for certain semigroups of order-preserving full contraction mappings of a finite chain, (submitted 2013).
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-13,12,-4).
FORMULA
a(n) = (n+1)*2^(n-1) - n.
a(n) = +6*a(n-1) -13*a(n-2) +12*a(n-3) -4*a(n-4).
G.f.: x*(1-2*x+2*x^2-2*x^3)/(1-3*x+2*x^2)^2. [Bruno Berselli, Mar 01 2013]
EXAMPLE
a(3) = 13 because there are exactly 13 order-preserving or order-reversing full contraction mappings of a 3-chain, namely: (111), (112), (211), (122), (221), (123), (321), (222), (223), (233), (322), (332), (333).
PROG
(PARI) a(n)=(n+1)<<(n-1)-n; \\ Charles R Greathouse IV, Feb 28 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Abdullahi Umar, Feb 28 2013
EXTENSIONS
More terms from Joerg Arndt, Mar 01 2013
STATUS
approved