Live data from Hacker News

Show HN: an extremely simple program shows a 2D structure in the integers

news.ycombinator.com

11–15 of 15 posts

Re: Show HN: an extremely simple program shows a 2D structure in the integers

#12
That's cool. You can expand the pattern, presumably arbitrarily, by setting the number of columns to 256 or 512 (or greater?), but on my little 1440px screen I had to redirect to a file and scroll it sideways in an editor to see the whole thing.

Re: Show HN: an extremely simple program shows a 2D structure in the integers

#14
post #13

For any lazy C# folks: internal class Program { public static void Main() { int numRows = 256; int numColumns = 128; for (int row = 0; row Cool stuff, very interesting to see that triangle structure emerge.

For the even lazier: http://dotnetfiddle.net/gsdfJp

Re: Show HN: an extremely simple program shows a 2D structure in the integers

#15
Back when they taught me the number line and the Cartesian plane, it all seemed smooth and straightforward.

In the years since, I've seen primes, rationals, irrationals, Mandelbrot, and all manner of weird structures popping up out of what seemed like nothing.

How did this happen? And who put all that stuff in there?

Post reply on HN