Ask the model to reason step by step before giving an answer.
Simply add "Let's think step by step" to the prompt.
No need to provide worked examples.
Open-ended generation can produce repetition loops:
Example from The Curious Case of Neural Text Degeneration by Holtzman et al.
But note: for modern aligned models, greedy works much better than it used to.