Square Pattern Mathematics