TanroMath

Học tập / Giai đoạn 2 · Lớp 8–9: Học sinh giỏi

Bài 14. Bất biến, đơn biến và trò chơiLesson 14. Invariants, monovariants and games

Bài họcThử thách6 câu hỏi

🎯 Sau bài này bạn sẽ

Tìm đại lượng không đổi qua mỗi bước biến đổi Phân tích trò chơi bằng vị trí thắng – thua

Find a quantity that stays the same at every step Analyse games using winning and losing positions

Bất biến

Một quá trình biến đổi lặp lại; tìm đại lượng không đổi (tổng, tích, số dư, tính chẵn lẻ) để chứng minh không thể đạt trạng thái mong muốn.

Ví dụ. Trên bảng có các số 1, 2, …, 10. Mỗi lần xóa hai số $a, b$ và viết $a + b - 1$. Sau 9 lần còn một số. Số đó là bao nhiêu? — Mỗi lần tổng giảm 1. Tổng ban đầu 55, sau 9 lần còn $55 - 9 = 46$.

Đơn biến

Đại lượng chỉ tăng (hoặc chỉ giảm) và bị chặn ⇒ quá trình phải dừng.

Trò chơi lấy sỏi

Có $n$ viên sỏi, hai người lần lượt lấy 1, 2 hoặc 3 viên; ai lấy viên cuối cùng thắng. Vị trí thua là bội của 4: từ đó đối thủ luôn đưa về bội của 4 tiếp. Vậy người đi trước thắng khi và chỉ khi $n$ không chia hết cho 4.

Phân tích trò chơi: tính ngược từ cuối, đánh dấu vị trí thắng (T) / thua (B). Một vị trí là T nếu có nước đi tới B; là B nếu mọi nước đều tới T.

Luyện tiếp với đề IMO thật

  • Bài 28 — IMO 1986/3: đơn biến trên ngũ giác

Invariants

A process is repeated; find a quantity that never changes (a sum, product, remainder or parity) to prove the desired state cannot be reached.

Example. The numbers 1, 2, …, 10 are on a board. Each time, erase two numbers $a, b$ and write $a + b - 1$. After 9 steps one number remains. What is it? — Each step lowers the sum by 1. The sum starts at 55, so after 9 steps it is $55 - 9 = 46$.

Monovariants

A quantity that only increases (or only decreases) and is bounded ⇒ the process must stop.

The pebble game

There are $n$ pebbles; two players take turns removing 1, 2 or 3; whoever takes the last pebble wins. The losing positions are the multiples of 4: from there the opponent can always return to a multiple of 4. So the first player wins exactly when $n$ is not a multiple of 4.

To analyse a game, work backwards from the end, marking positions as W (win) or L (lose). A position is W if some move leads to an L; it is L if every move leads to a W.

Keep practising with real IMO problems

  • Lesson 28 — IMO 1986/3: a monovariant on a pentagon

✍️ Luyện tập

Bảng có 1, 2, …, 20. Mỗi lần xóa $a, b$ và viết $a + b$. Số cuối cùng là:The board holds 1, 2, …, 20. Each time, erase $a, b$ and write $a + b$. The final number is:

Có 21 viên sỏi, mỗi lượt lấy 1–3 viên, ai lấy viên cuối thắng. Người đi trước nên lấy bao nhiêu viên đầu tiên?There are 21 pebbles; each turn take 1–3; whoever takes the last wins. How many should the first player take?

Cùng luật trên, với 24 viên thì ai thắng (nếu chơi tối ưu)?With the same rules and 24 pebbles, who wins (with perfect play)?

Bảng có 1, 2, …, 10. Mỗi lần xóa hai số và viết hiệu của chúng. Số cuối cùng là số:The board holds 1, 2, …, 10. Each time, erase two numbers and write their difference. The final number is:

Mỗi lượt lấy 1 hoặc 2 viên, ai lấy viên cuối thắng. Các vị trí thua là bội của:Each turn take 1 or 2 pebbles; whoever takes the last wins. The losing positions are the multiples of:

Có 3 số 3, 4, 5. Mỗi lần thay hai số $a, b$ bằng $0{,}6a - 0{,}8b$ và $0{,}8a + 0{,}6b$. Đại lượng bất biến là:Start with the numbers 3, 4, 5. Each time, replace two numbers $a, b$ by $0.6a - 0.8b$ and $0.8a + 0.6b$. Which quantity is invariant?
0 / 0 câu đã làm

Bình luận (0)

Chưa có bình luận nào. Hãy là người đầu tiên!