A man puts on a clean shirt every night before bed. On the first nigh he puts on a blue shirt. He than sleeps for 5 hours. Every one hour more he sleeps than the night before he put on a different color shirt the next night according to this scale: blue, black, red, green, white, pink, orange, brown, purple, yellow, grey, neon green, tan, and teal. Every one hour less he sleeps than the last night he put on a different color shirt the next night going backwards on his scale.
If he were to wear a blue shirt because he slept more hours than the last night he does. If it was because he slept less hours than the night before he skips it and wears a teal shirt instead. If he goes backwards on the scale and goes to blue but would not wear a blue shirt he still counts blue in his going backwards on his scale.
The second night the man wears a blue shirt because he did not sleep any more or less hours than the last night. The man sleeps for six hours that night.
The next night he sleeps for five hours.
Night number four he sleeps for eight hours.
The next night he sleeps for seven hours.
The next night he sleeps so well he sleeps for 11 hours.
Night number seven he stays up so late he only sleeps for four hours.
The next night he is so tired he sleeps for eight hours.
The next night he sleeps for eight hours again.
Night number ten he sleeps for 14 hours because he is sick.
Since he slept so long the last night he only sleeps for seven hours.
The next night he is a little bit tired so he sleeps for eight hours.
The night after that he had to do so much work he only slept five hours.
The next night at work they let him out early and he slept for nine hours.
The next night he slept for eight hours.
And the last night the man did he slept for ten hours.
The next night he put on a different color shirt according to his scale, but the next night he randomly picked a shirt. At what night will the man wear a blue shirt again?