repeatsAt

private fun repeatsAt(lines: List<String>, start: Int, p: Int): Int

How many times the block of p lines at start repeats back to back; 1 when it does not repeat.