Pattern for a knitted cap