Triangle and square pattern n4