`a(n)` is the number of triangles on `3\times n` grid. For example, a triangle on `3\times 2` and a triangle on `3\times 4` grid are drawn in the following figure.

Find `a(n)`.