"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from IPython.display import YouTubeVideo\n",
"YouTubeVideo(\"JWl4ZPrb5Ag\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"\n",
"\n",
"#### Resource:\n",
"\n",
"[A005901](http://oeis.org/A005901)\n",
"\n",
"A005901 at Online Encyclopedia of Integer Sequences\n",
"
"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[1, 12, 42, 92, 162, 252, 362, 492, 642, 812]\n"
]
}
],
"source": [
"def icosa_series(freq):\n",
" if freq == 0:\n",
" return 1\n",
" return 10 * freq ** 2 + 2\n",
"\n",
"print([icosa_series(n) for n in range(10)])"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
}
},
"nbformat": 4,
"nbformat_minor": 2
}