Skip to content

Commit e31dfb1

Browse files
committed
Fix: Missing constant
1 parent a9d836f commit e31dfb1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

discrete-mathematics/series-and-sequences/triangular-numbers-and-their-sum.ipynb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"Thus, when we substitute it back in\n",
125125
"\n",
126126
"$$\n",
127-
"\\sum_{k=1}^n k(k+1) = \\dfrac{1}{2} \\cdot \\boxed{\\dfrac{n(n+1)(n+2)}{3}}\n",
127+
"\\dfrac{1}{2} \\sum_{k=1}^n k(k+1) = \\dfrac{1}{2} \\cdot \\boxed{\\dfrac{n(n+1)(n+2)}{3}}\n",
128128
"$$\n",
129129
"\n",
130130
"---\n",
@@ -133,7 +133,7 @@
133133
"\n",
134134
"$$\n",
135135
"\\boxed{\n",
136-
" \\sum_{k=1}^n k(k+1) = \\dfrac{n(n+1)(n+2)}{6}\n",
136+
" \\sum_{k=1}^n \\dfrac{k(k+1)}{2} = \\dfrac{n(n+1)(n+2)}{6}\n",
137137
"}\n",
138138
"$$\n"
139139
]
@@ -155,7 +155,14 @@
155155
"name": "python",
156156
"nbconvert_exporter": "python",
157157
"pygments_lexer": "ipython3",
158-
"version": "3.12.9"
158+
"version": "3.13.9"
159+
},
160+
"widgets": {
161+
"application/vnd.jupyter.widget-state+json": {
162+
"state": {},
163+
"version_major": 2,
164+
"version_minor": 0
165+
}
159166
}
160167
},
161168
"nbformat": 4,

0 commit comments

Comments
 (0)