In mathematics, a Delannoy number describes the number of paths from the southwest corner (0, 0) of a rectangular grid to the northeast corner (m, n), using only single steps north, northeast, or east. The Delannoy numbers are named after French army officer and amateur mathematician Henri Delannoy.
The Delannoy number also counts the number of global alignments of two sequences of lengths and , the number of points in an m-dimensional integer lattice that are at most n steps from the origin, and, in cellular automata, the number of cells in an m-dimensional von Neumann neighborhood of radius n while the number of cells on a surface of an m-dimensional von Neumann neighborhood of radius n is given with (sequence in the OEIS).