Triangular number mathematical pattern - Search