14. 40 students form a circle, each numbered from 1 to 40. The teacher randomly selects one student, and this student starts counting 1 to 3 in a clockwise direction. Any student who reports 1 or 2 leaves the circle. This process continues until only one student remains. The number of the last remaining student is 37. Therefore, the student the teacher initially selected is _—.
【Analysis】If the initial number of people is $3^{n}$, then starting from person 1, the last person left is the one closest to 40 in the form of $3^{n}$, which is 27. 13 people need to leave, which is an odd number, making it difficult to use. If the initial number of people is $2 \times 3^{n}$, then starting from person 1, the last person left is the one closest to 40 in the form of $2 \times 3^{n}$, which is 18. 22 people need to leave, which is an even number, making it possible to use. Starting from person 1, after 22 people leave, 33 numbers have been called, and the 34th student becomes the first one, so the last person left is the 33rd.
Now, the one left is the 37th student, so the teacher initially pointed to the 5th.