Growth [2D cellular automaton] rules
The pictures below show examples of rules in which a cell becomes black if it has exactly the specified numbers of black neighbors (the initial conditions used have the minimal number of black cells for growth). The code numbers in these cases are given by 2/3 (4n - 1) + Apply[Plus, 4list] where n is the number of neighbors, here 5. (See also the 9-neighbor examples on page 373.)