This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A321275 #9 Nov 03 2018 15:34:23 %S A321275 1,4,22,132,890,6812,58422,555900,5819658,66554180,825839718, %T A321275 11054124886,158795559000,2437248222710,39809464449676, %U A321275 689538524084168,12625142440334342,243656361772961292,4943801229819987022,105212500452414418118,2343513475564027153128 %N A321275 Sum over all permutations of [n] of the product of the lengths of longest increasing subsequence and longest decreasing subsequence. %H A321275 Alois P. Heinz, <a href="/A321275/b321275.txt">Table of n, a(n) for n = 1..70</a> %H A321275 Wikipedia, <a href="https://en.wikipedia.org/wiki/Longest_increasing_subsequence">Longest increasing subsequence</a> %p A321275 h:= l-> (n-> add(i, i=l)!/mul(mul(1+l[i]-j+add(`if`(j> %p A321275 l[k], 0, 1), k=i+1..n), j=1..l[i]), i=1..n))(nops(l)): %p A321275 f:= l-> h(l)^2*l[1]*nops(l): %p A321275 g:= (n, i, l)-> `if`(n=0 or i=1, f([l[], 1$n]), %p A321275 g(n, i-1, l) +g(n-i, min(i, n-i), [l[], i])): %p A321275 a:= n-> g(n$2, []): %p A321275 seq(a(n), n=1..23); %Y A321275 Cf. A003316, A321273, A321274, A321276, A321277, A321278. %K A321275 nonn %O A321275 1,2 %A A321275 _Alois P. Heinz_, Nov 01 2018