read n for x in {PP,P\ \ ,PP,,}P;{ y= eval y+=$\{x:{0..39}/n:1} for((;++i%~n;)){ echo "$y" } }