What is the deuteronomic pattern?

God warns, people keep on sinning, He punishes, they repent, He restores them.