You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/content/post/math-better-explained-arithmetic/index.en.md
+130-1Lines changed: 130 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
---
2
2
title: "BetterExplained - Part 2 - Arithmetic"
3
-
description: "Mental math tricks: road speed and work hours in a year"
3
+
description: >-
4
+
Numbers (N, Z, Q, R), their properties and relations, operations
5
+
<span class="op-pairs"><span class="op-pair">+ and −</span><span class="op-pair">× and /</span><span class="op-pair">\(a^{b}\) and \(\sqrt[n]{a}\)</span></span>
### We're usually just given the formula and told to memorize it {.toc-heading-only}
126
+
127
+
<detailsclass="post-accordion">
128
+
<summary>We're usually just given the formula and told to memorize it</summary>
129
+
<div>
130
+
131
+
\[
132
+
\text{Sum from 1 to } n = \frac{n(n+1)}{2}
133
+
\]
134
+
135
+
\[
136
+
\text{Sum from 1 to 100} = \frac{100(100+1)}{2} = (50)(101) = 5050
137
+
\]
138
+
139
+
But to build **intuition** and really understand it, you need to **derive the formula yourself**.
140
+
141
+
Below are four ways to derive it.
142
+
143
+
</div>
144
+
</details>
145
+
146
+
### 1) Split the sequence in half and add in pairs {.toc-heading-only}
147
+
148
+
<detailsclass="post-accordion">
149
+
<summary>1) Split the sequence in half and add in pairs</summary>
150
+
<div>
151
+
152
+
```
153
+
1 2 3 4 5
154
+
10 9 8 7 6
155
+
```
156
+
157
+
Each vertical pair has the same sum: \(1 + 10 = 2 + 9 = \ldots = n + 1\). There are \(\frac{n}{2}\) pairs.
158
+
159
+
\[
160
+
\text{Number of pairs} \times \text{sum of each pair} = \frac{n}{2}(n+1) = \frac{n(n+1)}{2}
161
+
\]
162
+
163
+
</div>
164
+
</details>
165
+
166
+
### 2) Two rows of numbers {.toc-heading-only}
167
+
168
+
<detailsclass="post-accordion">
169
+
<summary>2) Two rows of numbers</summary>
170
+
<div>
171
+
172
+
```
173
+
1 2 3 4 5 6 7 8 9 10
174
+
10 9 8 7 6 5 4 3 2 1
175
+
```
176
+
177
+
Add **both** rows: every column sums to \(n + 1\), and there are \(n\) columns:
178
+
179
+
\[
180
+
\text{Sum of both rows} = n(n+1)
181
+
\]
182
+
183
+
We only want **one** row, so divide by 2:
184
+
185
+
\[
186
+
\frac{n(n+1)}{2}
187
+
\]
188
+
189
+
</div>
190
+
</details>
191
+
192
+
### 3) Picture a triangle {.toc-heading-only}
193
+
194
+
<detailsclass="post-accordion">
195
+
<summary>3) Picture a triangle</summary>
196
+
<div>
197
+
198
+
```
199
+
x
200
+
x x
201
+
x x x
202
+
x x x x
203
+
x x x x x
204
+
```
205
+
206
+
\(n\) rows, row \(k\) has \(k\) cells — \(1 + 2 + \ldots + n\) in total. Imagine fitting two such triangles together tooth-to-tooth to form a rectangle. **Derive the formula yourself** from that picture.
207
+
208
+
</div>
209
+
</details>
210
+
211
+
### 4) Via the average — the most interesting one, in my view {.toc-heading-only}
212
+
213
+
<detailsclass="post-accordion">
214
+
<summary>4) Via the average — the most interesting one, in my view</summary>
215
+
<div>
216
+
217
+
We all know that
218
+
219
+
\[
220
+
\text{average} = \frac{\text{sum}}{\text{number of items}}
221
+
\]
222
+
223
+
which we can rewrite as
224
+
225
+
\[
226
+
\text{sum} = \text{average} \times \text{number of items}
227
+
\]
228
+
229
+
For \(1, 2, \ldots, n\) the average is easy to eyeball from the **middle** of the range: \(\frac{n+1}{2}\). There are \(n\) items, so:
230
+
231
+
\[
232
+
\text{sum} = \frac{n+1}{2} \cdot n = \frac{n(n+1)}{2}
233
+
\]
234
+
235
+
For \(1 \ldots 100\): average \(\approx 50.5\), sum \(50.5 \times 100 = 5050\).
Copy file name to clipboardExpand all lines: blog/content/post/math-better-explained-arithmetic/index.md
+130-1Lines changed: 130 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
---
2
2
title: "BetterExplained - часть 2 - Арифметика"
3
-
description: "Ментальные трюки: скорость на дороге и рабочие часы в году"
3
+
description: >-
4
+
Числа (N, Z, Q, R), их свойства и отношения, операции
5
+
<span class="op-pairs"><span class="op-pair">+ и −</span><span class="op-pair">× и /</span><span class="op-pair">\(a^{b}\) и \(\sqrt[n]{a}\)</span></span>
\(n\) строк, в \(k\)-й строке \(k\) «клеток» — всего \(1 + 2 + \ldots + n\) единиц. Представьте, что складываете два таких треугольника «зуб к зубу» и получаете прямоугольник. **Формулу постройте сами** из этой картинки.
207
+
208
+
</div>
209
+
</details>
210
+
211
+
### 4) Через среднее — самая интересная, на мой взгляд {.toc-heading-only}
212
+
213
+
<detailsclass="post-accordion">
214
+
<summary>4) Через среднее — самая интересная, на мой взгляд</summary>
0 commit comments