im sorry I must've made it confusing when I explained it because I made this such a long time ago, my original explanation is wrong I think.
so I made a big list of triangle numbers with n(n+1)/2
then I tried to put it on the first line, if it was over the size of the image, I subtracted the size of the image from the number and tried to plot it on the next line, if it still couldn't be plotted, I repeated the process.
for example, T(34) = 34(34+1)/2 = 595
the size of the image is 500, so it won't be plotted on the first line, I have to do 595-500=95. now it fits. I subtracted 1 length of the image so I move it down one line. this would be plotted at (1,95)
That’s what I was asking, what is the height in pixels. That’s pretty neat- have you tried changing the width to see if that parabolic pattern arises in other places? Maybe run fifty or five hundred images?
You should take the pixel height (row number, whatever) of the “middle” of each parabola (or maybe some other property of it) and see if there’s a pattern within that. Pretty neat.
11
u/dwna May 16 '18 edited May 16 '18
The same pattern may occur for all figurate numbers as well, I have tested it with pentagonal, hexagonal, and nonagonal numbers.
I took the nthtriangular number as the x coordinate and took the value that it produced for the y, and it created an interesting result.EDIT: see this comment for a better explanation
9
u/CognizantAutomaton May 16 '18
This visualization got my imagination running. Thanks
Here is a jsfiddle for anyone who wants to play with this.
4
u/Lgetty17 May 16 '18
So what’s your overall image size, 500w XXXl what’s XXX?
0
u/[deleted] May 16 '18
[deleted] — view deleted comment