A140356 Triangle T(n,m) read by rows: m! if m <= floor(n/2), and (n-m)! otherwise.
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 6, 2, 1, 1, 1, 1, 2, 6, 6, 2, 1, 1, 1, 1, 2, 6, 24, 6, 2, 1, 1, 1, 1, 2, 6, 24, 24, 6, 2, 1, 1, 1, 1, 2, 6, 24, 120, 24, 6, 2, 1, 1, 1, 1, 2, 6, 24, 120, 120, 24, 6, 2, 1, 1, 1, 1, 2, 6, 24, 120, 720, 120, 24, 6, 2, 1, 1, 1, 1, 2, 6, 24
Offset: 0
Examples
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 6, 2, 1, 1, 1, 1, 2, 6, 6, 2, 1, 1, 1, 1, 2, 6, 24, 6, 2, 1,1, 1, 1, 2, 6, 24, 24, 6, 2, 1, 1, 1, 1, 2, 6, 24, 120, 24, 6, 2, 1, 1
Programs
-
Mathematica
g[n_, m_] := If[m <= Floor[n/2], m!, (n - m)! ]; w = Table[Table[g[n, m], {m, 0, n}], {n, 0, 10}]; Flatten[w] Table[Apply[Plus, Table[g[n, m], {m, 0, n}]], {n, 0, 10}]
Formula
Extensions
Non-Ascii characters corrected, offset set to 0, reported Mma experiments removed - The Assoc. Editors of the OEIS, Oct 31 2009
Comments