add relevant sequence

This commit is contained in:
filifa 2025-07-19 21:26:34 -04:00
parent d972bbb8c9
commit 8111abfd4d
2 changed files with 2 additions and 19 deletions

View File

@ -92,31 +92,13 @@
" yield dsum[n]"
]
},
{
"cell_type": "markdown",
"id": "fdbabc18",
"metadata": {},
"source": [
"Here's a check to make sure the sieve matches the values from SageMath."
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "0539d1fc",
"metadata": {},
"outputs": [],
"source": [
"s = list(sum_of_divisors_sieve(10000))\n",
"assert all(s[n] == sigma(n) for n in range(1, 10000))"
]
},
{
"cell_type": "markdown",
"id": "a847f754",
"metadata": {},
"source": [
"## Relevant sequences\n",
"* Sums of divisors: [A000203](https://oeis.org/A000203)\n",
"* Amicable numbers: [A063990](https://oeis.org/A063990)"
]
}

View File

@ -63,6 +63,7 @@
"metadata": {},
"source": [
"## Relevant sequences\n",
"* Sums of divisors: [A000203](https://oeis.org/A000203)\n",
"* Numbers that are not the sum of two abundant numbers: [A048242](https://oeis.org/A048242)"
]
}