Vector pattern with mathematical formulas n2