Selected Math Olympiad problems solvable using student programming (Part 2)
Abstract
This article follows on from the first part of a series devoted to solving selected problems from the Mathematical Olympiad using "student" programming in Python. It presents five additional problems of various types (working with integer ratios, NSD/NSN, product pyramid, quadratic equations, and algebra programs). It shows how systematic searching of the state space can be used to verify the conditions of the assignment and obtain all solutions. Each task includes annotated source codes and a discussion of which programming techniques are didactically beneficial and where, on the contrary, there is a risk of unnecessary computational complexity or confusion (e.g., multiple nested loops). It also includes a demonstration of more advanced Python syntactic constructs (especially from the itertools library) as an alternative to classic looping and manual condition testing. The text thus provides concrete inspiration for teachers on how to link mathematical tasks with elementary algorithmic thinking while cultivating a style of program notation that remains understandable for students.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 MATHEMATICS–PHYSICS–INFORMATICS

This work is licensed under a Creative Commons Attribution 4.0 International License.
Autoři, kteří publikují v tomto časopise, souhlasí s následujícími body:
- Autoři si ponechávají copyright a garantují časopisu právo prvního publikování, přitom je práce zároveň licencována pod Creative Commons Attribution licencí, která umožňuje ostatním sdílet tuto práci s tím, že přiznají jejího autora a první publikování v tomto časopisu.
- Autoři mohou vstupovat do dalších samostatných smluvních dohod pro neexkluzivní šíření práce ve verzi, ve které byla publikována v časopise (například publikovat ji v knize), avšak s tím, že přiznají její první publikování v tomto časopisu.

Obsah časopisu podléhá licenci Creative Commons Uveďte autora 3.0 Česko



