By Manuel Kauers and Doron Zeilberger
Written: Jan. 2026
Sum(YF(p)*YF(p+[i1,i2]), p in Par(n))
where Par(n) is the set of (integer) partitions of n, and YF(p) is the number of Standard Young Tableaux of shape p (using the Young-Frobenius Formula)
For [i1,i2]={[0,0],[1,0],[2,0],[2,1],[2,2]}
(note that the case [i1,i2]=0 gives n! thanks to Robinson-Schenstead)
the input file gives the
output
[For a nice version where the sequence corresponding to [i1,i2] is called Li1i2, see: here