Uploaded October 2021 | Updated November 2026, 1 day ago
#math #numbertheory #olympiad #proof #sequence #mathematics
In number theory, the Calkin–Wilf tree is a tree in which the vertices correspond one-to-one to the positive rational numbers. The tree is rooted at the number 1, and any rational number expressed in simplest terms as the fraction a/b has as its two children the numbers a/(a+b) and (a+b)/b. Every positive rational number appears exactly once in the tree.
The sequence of rational numbers in a breadth-first traversal of the Calkin–Wilf tree is known as the Calkin–Wilf sequence. Its sequence of numerators (or, offset by one, denominators) is Stern's diatomic series, which can be defined in the way we described in the video.
The proof in the video uses a few techniques, including the extremal technique covered in an earlier video!
#math #numbertheory #olympiad #proof #sequence #mathematics
In number theory, the Calkin–Wilf tree is a tree in which the vertices correspond one-to-one to the positive rational numbers. The tree is rooted at the number 1, and any rational number expressed in simplest terms as the fraction a/b has as its two children the numbers a/(a+b) and (a+b)/b. Every positive rational number appears exactly once in the tree.
The sequence of rational numbers in a breadth-first traversal of the Calkin–Wilf tree is known as the Calkin–Wilf sequence. Its sequence of numerators (or, offset by one, denominators) is Stern's diatomic series, which can be defined in the way we described in the video.
The proof in the video uses a few techniques, including the extremal technique covered in an earlier video!







![Google Code Jam 2022 Qualification - Chain Reactions and Twisty Little Passages
#coding #programming #algorithms #data
Google Code Jam is one of the most prestigious competitive programming competition held today. The competition consists of a set of algorithmic problems which must be solved in a fixed amount of time.
The Google Code Jam 2022 Qualification Round took place 2-3 April 2022. In this video, we will cover the last two problems of the round. [This video is posted only after the round has closed.]
0:00 Introduction
0:18 Chain Reactions - Problem statement
4:20 Chain Reactions - Solution
10:57 Twisty Little Passages - Problem statement
12:48 Twisty Little Passages - Solution Google Code Jam 2022 Qualification - Chain Reactions and Twisty Little Passages](https://i.ytimg.com/vi/iYiMSzuBHIo/mqdefault.jpg)


