OFFSET
0,4
LINKS
Alois P. Heinz, Rows n = 0..140, flattened
A. Cayley, On the number of distinct terms in a symmetrical or partially symmetrical determinant, Collected Mathematical Papers. Vols. 1-13, Cambridge Univ. Press, London, 1889-1897, Vol. 9, pp. 185-190. [Annotated scanned copy]
FORMULA
phi(0,0)=1, phi(1,0)=phi(0,1)=1, phi(2,0)=phi(1,1)=phi(0,2)=2; for m>2, phi(m,0) = m*phi(m-1,0) - (m-1)*(m-2)/2*phi(m-3,0); for m>2, n>0, phi(m,n) = m*phi(m-1,n) + n*phi(m,n-1).
EXAMPLE
Triangle begins:
1,
1,1,
2,2,2,
5,6,6,6,
17,23,24,24,24,
73,109,118,120,120,120,
388,618,690,714,720,720,720,
...
MAPLE
phi:= proc(m, n) option remember;
`if`(n+m<2, 1, `if`(n+m=2, 2, m*phi(m-1, n)-
`if`(n=0, (m-1)*(m-2)/2*phi(m-3, 0), -n*phi(m, n-1))))
end:
seq(seq(phi(m-k, k), k=0..m), m=0..10); # Alois P. Heinz, Jul 30 2015
MATHEMATICA
phi[m_, n_] := phi[m, n] = If[n+m < 2, 1, If[n+m == 2, 2, m*phi[m-1, n] - If[n == 0, (m-1)*(m-2)/2*phi[m-3, 0], -n*phi[m, n-1]]]]; Table[Table[phi[ m-k, k], {k, 0, m}], {m, 0, 10}] // Flatten (* Jean-François Alcover, Feb 17 2016, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
N. J. A. Sloane, Jul 30 2015
EXTENSIONS
More terms from Alois P. Heinz, Jul 30 2015
STATUS
approved