Cyclic cellular automata on pattern
P
=135
N
=8