Decompositions into the sum

Authors

  • Pavel Töpfer Faculty of Mathematics and Physics, Charles University, Prague

Abstract

The article from the series dedicated to problems of Mathematical Olympiad – category P (programming) describes a competition task from the year 1989, and its interesting modification. Our task is to find all the different decompositions of a given natural number to the sum of positive integers and to determine the number of such decompositions. While we use the recursion to list all the decompositions, we may determine their number using the method of dynamic programming.

Published

2015-09-01

How to Cite

Töpfer, P. (2015). Decompositions into the sum. MATHEMATICS–PHYSICS–INFORMATICS, 24(4), 312–318. Retrieved from https://mfi.upol.cz/index.php/mfi/article/view/226

Issue

Section

Informatics