Guichard-Combinatorics-Graph-Theory · Problem 1.3.10

Fundamentals

Mathematics — Probability · binomial-coefficients

Problem

Find the number of ways to write nn as an ordered sum of ones and twos, n≥0n \geq 0. For example, when n=4n = 4, there are five ways: 1+1+1+11+1+1+1, 2+1+12+1+1, 1+2+11+2+1, 1+1+21+1+2, and 2+22+2.

Related theory

Browse the problem library