A pattern is formed using the letters A, B and C. The first 15 letters are shown.
A B A C A A B A D A A B A C A
The letter A appears 137 times in the pattern. What is the greatest possible number of letters in the pattern?​