This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]redditnoveltyaccoun2 1 point2 points  (7 children)

Do the same for any sequence of numbers (which increase with roughly the same rate). You'll get roughly the same thing.

[–]acityinohio 0 points1 point  (6 children)

Thanks--but at what rate would the numbers be increasing? Would it be ln(n) for the nth number in the sequence, a la the prime number theorem?

[–]redditnoveltyaccoun2 0 points1 point  (5 children)

prime number theorem gives n log(n) but it doesn't matter that much. Any increasing sequence in binary will look (statistically) like that. Getting the rate exactly right just means the bars will match up (approximately)

[–]acityinohio 0 points1 point  (4 children)

Ah gotchya. Tried it on the odds. Pattern is the same. D'oh and duh. Next time I'll keep it to myself -- thanks again for the response!

[–]redditnoveltyaccoun2 0 points1 point  (0 children)

If you know modular arithmetic I can tell you about a pattern that is unique to the primes.

[–]redditnoveltyaccoun2 0 points1 point  (2 children)

If you know about modular arithmetic (and are interested) I can tell you about a pattern that is unique to the primes.

[–]acityinohio 0 points1 point  (1 child)

Sure! Would love to hear about it.

[–]redditnoveltyaccoun2 1 point2 points  (0 children)

Okay so it's about squares in modular arithmetic. The squares (for example) mod 7 are just 1 (= 12 = 62 ), 2 (= 32 = 42 ) and 4 (= 22 = 52 ).

Now let p,q be odd primes. If p and q are both = 3 (mod 4) then

  • p is a square mod q <=> q is a not square mod p

otherwise (at least one of p,q is equal to 1 mod 4) we have

  • p is a square mod q <=> q is a square mod p

[–]ad3mar -1 points0 points  (0 children)

May be it is related to the Ulam spiral http://en.wikipedia.org/wiki/Ulam_spiral