TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Visual Sum of Cubes

362 点作者 lnyan将近 3 年前

12 条评论

kilovoltaire将近 3 年前
Thanks for the nice comments, everyone! I made this but didn&#x27;t expect to see it here.<p>As people have noticed, the spinning diagrams are done with CSS, which was fun.<p>Basically it&#x27;s just an `animation: linear infinite;` from `transform: rotateY(0turn);` to `transform: rotateY(1turn);`<p>(source here <a href="https:&#x2F;&#x2F;github.com&#x2F;hrldcpr&#x2F;poole&#x2F;blob&#x2F;master&#x2F;_sass&#x2F;_latex3d.scss" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hrldcpr&#x2F;poole&#x2F;blob&#x2F;master&#x2F;_sass&#x2F;_latex3d....</a> )<p>To keep the numbers facing forward, they&#x27;re all also rotating, but in the opposite direction :p<p>And all of the numbers&#x27; `translate3d(...)` coordinates are generated by a Python script because I didn&#x27;t want to do that by hand...
评论 #32534126 未加载
civilized将近 3 年前
This is delightful! I believe these sums-of-powers formulas can be derived fairly easily with discrete calculus techniques (it&#x27;s in Knuth&#x27;s Concrete Mathematics, IIRC), but to see a purely geometric approach succeed is fascinating.<p>To understand why this technique works with sums of arbitrary powers, the key is to show that summing together rotations of simplices gets you a simplex of constant values. The following geometric argument works:<p>1. Think of the numbers in the simplex as a function f(x) of the coordinate vector x for the space the simplex is embedded in. Observe that f is linear.<p>2. A linear function on a simplex is determined uniquely by the values it takes at the vertices. Specifically, the value at any point is a weighted average of vertex point values.<p>3. If we create a &quot;sum simplex&quot; by summing together all possible rotations of the simplex, the result will also be a linear function on a simplex, and the values at all the vertices will be the same by symmetry.<p>4. Therefore, the linear function giving the values of the sum simplex is constant.<p>A rigorous proof could be developed by considering the standard simplex generated by the coordinate unit vectors, but scaled by a factor of n. For example, the equilateral triangle is the 2D simplex generated by connecting the vertices at (n,0,0), (0,n,0), (0,0,n). On this simplex, the integral points (x,y,z), where the coordinates x,y,z are integers, are the points assigned numbers in the blog post. &quot;Rotations&quot; are done by switching coordinate axes (actually a reflection), which preserves the integral points.
评论 #32532737 未加载
irrational将近 3 年前
The most impressive thing for me is that I could copy and paste the text&#x2F;numbers in the rotating pyramids!
评论 #32529167 未加载
评论 #32529814 未加载
sum-guest将近 3 年前
The sum of S(n) = 1^k + 2^k + ... + n^k is a polynomial of degree k + 1 over n. To find a closed form for S(n) you only need to compute k + 2 points, e.g. S(0), S(1), ..., S(k + 1) and fit a polynomial.<p>The claim that 1 + 2 + ... + n = n (n + 1) &#x2F; 2 only requires you to verify it for n = 0, n = 1, and n = 2, e.g. that 0 = 0 * 1 &#x2F;2, 1 = 1 * 2 &#x2F; 2, and 1 + 2 = 2 * 3 &#x2F; 2. I found this really surprising when I first heard it and thought I&#x27;d share :)
评论 #32532545 未加载
评论 #32530447 未加载
评论 #32531270 未加载
评论 #32529782 未加载
nine_k将近 3 年前
A perfect use of animated gifs in mathematical formulae, making things actually clearer.<p>The article uses a typical math text layout, but is something you cannot easily print.
评论 #32528996 未加载
评论 #32531480 未加载
评论 #32529695 未加载
评论 #32537414 未加载
woevdbz将近 3 年前
It looks super neat! But if I&#x27;m honest with myself I don&#x27;t actually &quot;see&quot; the numbers being equal after summing these tetrahedra (or even the triangles). I believe it, but I&#x27;d find a regular induction proof more believable. Visually, the trick in dimension 1 is a lot more convincing.
评论 #32533099 未加载
评论 #32532695 未加载
taeric将近 3 年前
Proofs Without Words, <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;dp&#x2F;1470451867" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;dp&#x2F;1470451867</a>, is a very fun exploration of this general topic.
swayvil将近 3 年前
Nice page! Palette, formatting, animations. Everything.
Sharlin将近 3 年前
The <i>n</i>-dimensional generalization of a triangle is a <i>n</i>-simplex, the simplest polytope whose faces are all (<i>n</i>-1)-simplices. A 4-simplex is called a 5-cell and is made of five tetrahedra.
pcwelder将近 3 年前
Neat visualisations and very erudite article. Thanks!<p>My observation is that the final formula is equivalent to two tetrahedra joined on a shared face. There must be a good way to manipulate that directly to get the constant sums. I can find a way but that requires relative rotation of the second tetrahedron. There might be a better way.
评论 #32593715 未加载
schemester将近 3 年前
With tetrahedra, at first I was expecting the n dimensional analog of taking a triangle, area n^2&#x2F;2, plus the half-squares, area n (1&#x2F;2), for the sum 1+…+n to equal n^2&#x2F;2+n&#x2F;2. This would require 4 dimensions for sum of cubes, though.
davesque将近 3 年前
I&#x27;m trying to figure out if this is using MathJax or KaTeX or what. Pretty neat with the number tetrahedrons.
评论 #32529171 未加载
评论 #32532487 未加载