A384186 Number of permutations of 1, 2,..., n with exactly one rising or falling successon, namely (n-1)n or n(n-1).
0, 2, 2, 2, 6, 34, 214, 1506, 11990, 107234, 1065846, 11659426, 139217494, 1801784610, 25124797046, 375531165794, 5989287277014, 101524201538146, 1822662037112950, 34548339122512674, 689469487015534166, 14450128299126915746
Offset: 1
Examples
a(2) = 2*1 from 12 and the reverted 21. a(3) = 2*1 from 132 and 231. a(4) = 2*1 from 1342 and 2431. a(5) = 2*3 from 24513, 24531, 31452 and 31542, 13542, 25413.
Comments