Since a Sierpiński triangle is made up of three smaller versions of itself, an algorithm made to pick random points on the triangle might go like this:
- Select one of the three Sierpiński triangles inside the larger Sierpiński triangle
- Repeat step 2 with the smaller Sierpiński triangle
It will continue getting more specific and will eventually narrow down to a point. If you continue picking two points like this, what will be the average distance? (Euclidian Metric)
I don't know how to do this analytically, but I did a simulation, assuming that the original triangle is equilateral of side $1$. With one million trials, I got a $99\%$ confidence interval of $$(0.42238756083753565, 0.4234628881174311)$$
I started with $$(1,0,0), (0,1,0), (0,0,1)$$ as the vertices of the triangle in barycentric coordinates. Then $30$ times, I chose one of the coordinates uniformly at random, and computed the vertices of the smaller triangle as the average of the chosen vertex and the old vertices. For example, if the first vertex chosen were $(1,0,0)$ the new triangle would have coordinates $$(1,0,0),\left(\frac12,\frac12,0\right),\left(\frac12,0,\frac12\right)$$ After $30$ samples, I took the average of the vertices as the chosen point.
For each trial, I chose two points, and computed the Euclidean distance between them using the formula from Wikipedia. Since I assumed that the side lengths of the triangle are all $1$, this is simply$$d=\sqrt{\frac{x^2+y^2+z^2}2}$$ where $x,y,z$ are the coordinates of the difference between the two chosen points, treated as vectors.
It seemed to me at first that one should be able to do this analytically. If the coordinates of the $n$th triangle are $(X_n, Y_n, Z_n)$ then $X_{n+1}$ is equally likely to be any of $X_n,\ \frac{X_n+Y_n}2,\ \frac{X_n+Z_n}2$. I haven't made any progress, though. This may just be because I'm not thinking clearly, but as I'm typing this it occurs to me that, since the Sierpiński gasket is a fractal, perhaps the distributions functions of X,Y,Z are singular, so that we can't hope for analytic expressions. I'm going to compute the distribution of $X_n$ for small $n$ and see if that gives me any ideas.
For completeness, here's the simulation script:
When I ran this with parameters
1000000 30it produced the output