Skip to content

Instantly share code, notes, and snippets.

@FBosler
Last active July 9, 2021 16:41
Show Gist options
  • Save FBosler/f4cb1aa880ba8169c37b8482669adeed to your computer and use it in GitHub Desktop.
Save FBosler/f4cb1aa880ba8169c37b8482669adeed to your computer and use it in GitHub Desktop.
foobar_dodge_the_lasers
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"id": "d9d762a0",
"metadata": {},
"source": [
"### Property of Beatty sequence and its complementary:\n",
"Every positive integer belongs to exactly one of ${\\mathcal {B}}_{r}^{(i)}$ or ${\\mathcal {B}}_{s}^{(i)}$.\n",
"\n",
"\n",
" \n",
"$S(n,r) + S(\\lfloor{\\frac{{\\mathcal {B}}_{r}^{(n)}}{s}}\\rfloor,s) = \\sum_{i=1}^{{\\mathcal {B}}_{r}^{(n)}} i = \\frac{{\\mathcal {B}}_{r}^{(n)}({\\mathcal {B}}_{r}^{(n)}+1)}{2} \\qquad \\textbf{(ii)}$\n",
"\n",
"$\\stackrel{using \\; (i)}{=>} S(n,r) + S(\\lfloor{\\frac{{\\mathcal {B}}_{r}^{(n)}}{s}}\\rfloor,r) + \\lfloor{\\frac{{\\mathcal {B}}_{r}^{(n)}}{s}}\\rfloor(\\lfloor{\\frac{{\\mathcal {B}}_{r}^{(n)}}{s}}\\rfloor+1)$\n",
"\n",
"$\\stackrel{using \\; (ii)}{=>} S(n,r) = \\frac{{\\mathcal {B}}_{r}^{(n)}({\\mathcal {B}}_{r}^{(n)}+1)}{2} - S(\\lfloor{\\frac{{\\mathcal {B}}_{r}^{(n)}}{s}}\\rfloor,r) - \\lfloor{\\frac{{\\mathcal {B}}_{r}^{(n)}}{s}}\\rfloor(\\lfloor{\\frac{{\\mathcal {B}}_{r}^{(n)}}{s}}\\rfloor+1)$"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "foobar",
"language": "python",
"name": "foobar"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment