On a board measuring 1x100, each square is numbered from 1 to 100.
Three colors are used to paint the squares from left to right. The following pattern is repeated: one blue square, two red squares, three green squares, one blue, two red, three green and so on.
What is the highest numbered square that is painted blue?