add some more detail

This commit is contained in:
filifa 2025-07-20 21:14:28 -04:00
parent f8d7a1d825
commit 164d1233b4
1 changed files with 38 additions and 0 deletions

View File

@ -97,6 +97,44 @@
"\n",
"max(combinations(range(0, 10), 4), key=streak)"
]
},
{
"cell_type": "markdown",
"id": "eda00caf",
"metadata": {},
"source": [
"Under the problem's rules, these numbers can form all the positive integers up to 51."
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "735dab1c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"51"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"streak((1,2,5,8))"
]
},
{
"cell_type": "markdown",
"id": "e56a1679",
"metadata": {},
"source": [
"## Relevant sequences\n",
"* Catalan numbers: [A000108](https://oeis.org/A000108)"
]
}
],
"metadata": {