Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.math > #330183 > unrolled thread

pattern found in Prime numbers

Started byJamie Morken <jmorken@shaw.ca>
First post2016-03-19 14:51 -0700
Last post2016-03-21 08:49 +0000
Articles 7 on this page of 27 — 9 participants

Back to article view | Back to sci.math


Contents

  pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 14:51 -0700
    Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 16:08 -0700
    Re: pattern found in Prime numbers Arturo Magidin <magidin@member.ams.org> - 2016-03-19 16:37 -0700
      Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 18:27 -0700
        Re: pattern found in Prime numbers Arturo Magidin <magidin@member.ams.org> - 2016-03-19 19:08 -0700
          Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 19:35 -0700
      Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 18:41 -0700
        Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 18:44 -0700
          Re: pattern found in Prime numbers Gottfried Helms <helms@uni-kassel.de> - 2016-03-20 04:04 +0100
            Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 20:49 -0700
              Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 21:15 -0700
                Re: pattern found in Prime numbers Gottfried Helms <helms@uni-kassel.de> - 2016-03-20 13:35 +0100
            Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-19 22:39 -0700
    Re: pattern found in Prime numbers Sylvia Else <sylvia@not.at.this.address> - 2016-03-20 13:20 +1100
      Re: pattern found in Prime numbers "David Eather" <eather@tpg.com.au> - 2016-03-20 23:51 +1000
        Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-20 10:39 -0700
          Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-20 10:41 -0700
            Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-20 17:56 -0700
              Re: pattern found in Prime numbers Arturo Magidin <magidin@member.ams.org> - 2016-03-20 19:56 -0700
          Re: pattern found in Prime numbers Arturo Magidin <magidin@member.ams.org> - 2016-03-20 15:03 -0700
            Re: pattern found in Prime numbers Jamie Morken <jmorken@shaw.ca> - 2016-03-20 18:06 -0700
          Re: pattern found in Prime numbers Arturo Magidin <magidin@member.ams.org> - 2016-03-20 17:46 -0700
          Re: pattern found in Prime numbers Sylvia Else <sylvia@not.at.this.address> - 2016-03-21 13:08 +1100
          Re: pattern found in Prime numbers Jasen Betts <jasen@xnet.co.nz> - 2016-03-21 05:02 +0000
      Re: pattern found in Prime numbers Mandy Liefbowitz <mandyliefbowitz@the.port.side> - 2016-03-21 00:18 +0000
    Re: pattern found in Prime numbers "Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com> - 2016-03-21 04:30 -0400
      Re: pattern found in Prime numbers R Kym Horsell <kym@kymhorsell.com> - 2016-03-21 08:49 +0000

Page 2 of 2 — ← Prev page 1 [2]


#330262

FromJamie Morken <jmorken@shaw.ca>
Date2016-03-20 18:06 -0700
Message-ID<ncnhgp$1g1k$3@gioia.aioe.org>
In reply to#330245
On 3/20/2016 3:03 PM, Arturo Magidin wrote:

>> Hi,
>>
>> For the offsets here is the full list:
>>
>> 30x+1 is always not prime every seventh x (for x starting at 3)
>
> ie., 30(3+7y) + 1 = 6+1 = 0 (mod 7); always a multiple of 7.
>
>> 30x+7 is always not prime every seventh x (for x starting at 0)
>
> 30(7y) + 7 = 0 (mod 7); always a multiple of 7.
>
>> 30x+11 is always not prime every seventh x (for x starting at 6)
>
> This is incorrect. When x=6, you get 30(6)+11 = 191, which is prime. More generally, you are claiming that
>
> 30(6+7y) + 11 = 210y + 191 is never prime for any value of x. However, since gcd(210,191) = 1, by Dirichlet's Theorem for
Primes in Arithmetic Progressions, this quantity will be prime 
infinitely often. It is prime when y=0 (that is, at x=6); it is
prime again at y=1 (x=13), when you get 401; is not prime at y=2 (when 
you get 611 = 13*47); but is prime again at y=3, when you get 821. Etc.
>
>> 30x+13 is always not prime every seventh x (for x starting at 5)
>
> Again false. 30(5+7y)+13 = 210y + 163; when y=0 you get 163, which is prime, and by Dirichlet's Theorem it will be prime for infinitely
many values of y (but not always, since, e.g., when y = 2 you get 
583=11*53).
>
>> 30x+17 is always not prime every seventh x (for x starting at 2)
>
> 30(2+7y)+17 = 4+17 = 21 = 0 (mod 7), so this is always a multiple of 7.
>
>> 30x+19 is always not prime every seventh x (for x starting at 1)
>
> 30(1+7y)+19 = 2+5 = 0 (mod 7), so this is always a multiple of 7.
>
>> 30x+23 is always not prime every seventh x (for x starting at 7)
>
> This is incorrect again. You are claiming that 30(7+7y) + 23 = 210y + 233 is never prime; but it is prime when y=0 (i.e., when x=7),
and it will be prime infinitely often but not always.
>
>> 30x+29 is always not prime every seventh x (for x starting at 4)
>
> Incorrect. It is prime when x=4. You are looking at 30(4+7y) + 29 = 210y + 149, which is prime infinitely often (but not always).
>
>>
>> How can I automatically find these formulas?
>
> The correct ones are trivial consequences of congruences. The incorrect ones are trivial consequences of not doing your arithmetic right.
>

Hi,

Thanks, here is some more data I hope it is correct now, I think I 
verified it better (with the computer)


(30*7*7)+7
not prime: 1477
(not prime for all multiples of 7)

ie:
(30*7*14)+7
not prime: 2947

(30*7*21)+7
not prime: 4417

(30*7*28)+7
not prime: 5887

etc all not prime.

tested up to 7*714=4998
(30*7*4998)+7
not prime: 1049587

I think the general formula is:

(primorial*prime1*prime2)+prime1 is not a prime for prime1's
larger than the largest prime factor in primorial, and for integer
multiples of prime2, ie in the example above prime1=7 and prime2=7,
and the primorial is 30, with prime factors 2,3,5.

cheers,
Jamie







[toc] | [prev] | [next] | [standalone]


#330259

FromArturo Magidin <magidin@member.ams.org>
Date2016-03-20 17:46 -0700
Message-ID<05f07e0a-a7dd-4f5d-8ed0-1fd4a5ac7c6a@googlegroups.com>
In reply to#330234
On Sunday, March 20, 2016 at 12:40:32 PM UTC-5, Jamie Morken wrote:
> On 3/20/2016 6:51 AM, David Eather wrote:
> > On Sun, 20 Mar 2016 12:20:26 +1000, Sylvia Else
> > <sylvia@not.at.this.address> wrote:
> >
> >> On 20/03/2016 8:51 AM, Jamie Morken wrote:
> >>> Hi,
> >>>
> >>> I found a pattern in the prime numbers, I used an encoded binary
> >>> sequence, and the pattern became clearly visible:
> >>>
> >>> http://imgur.com/BI1rAp4
> >>>
> >>> That's all zeros and ones, depending on if a prime is at the
> >>> positions given by the formulas:
> >>>
> >>> y = 30x + 1
> >>> y = 30x + 7
> >>> y = 30x + 11
> >>> y = 30x + 13
> >>> y = 30x + 17
> >>> y = 30x + 19
> >>> y = 30x + 23
> >>> y = 30x + 29
> >>>
> >>> The pattern can be seen if the zeros and ones are displayed as
> >>> a bitmap, but only if there is the correct number of columns
> >>> in the bitmap, and that is the pattern I found, the column
> >>> count to show the pattern seems to be this for primorial30:
> >>>
> >>> 8*prime  (where 8 is how many coprimes 30 has)
> >>>
> >>> I tested prime 7 so far, but I think the pattern seen might hold
> >>> for larger primes too.
> >>>
> >>> When 8*7=56 columns are used ie here are the first 20 rows, all having
> >>> columns of zeros:
> >>>
> >>> 0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,1,0,0,
> >>>
> >>>
> >>> 1,0,0,1,1,1,1,1,1,0,1,0,1,0,1,1,1,1,1,1,0,0,1,0,0,1,1,1,1,0,0,0,1,1,0,0,1,1,1,1,0,1,0,1,0,1,1,1,0,1,1,0,0,1,0,1,
> >>>
> >>>
> >>> 1,0,1,1,0,1,1,1,0,1,1,1,1,0,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,0,1,1,1,1,0,0,1,0,1,1,1,1,0,1,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0,0,0,1,
> >>>
> >>>
> >>> 0,0,1,1,1,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,1,1,0,1,0,0,1,0,0,0,1,1,1,1,0,0,0,1,1,1,0,0,0,1,0,0,0,0,0,0,
> >>>
> >>>
> >>>
> >>> The columns of zeros match up to give these patterns that can be
> >>> verified:
> >>>
> >>> 30x+7 is always NOT prime every seventh x
> >>
> >> Obvious.
> >>
> >>> 30x+19 is always NOT prime every seventh x (offset one from x for 30x+7)
> >>
> >> 30x + 19 mod 7 ≡ 2x + 5 mod 7.
> >>
> >> If we want the result to be divisible by 7, then
> >>
> >> 2x + 5 mod 7 ≡ 0
> >>
> >> 2x ≡ -5 mod 7 ≡ 2 mod 7.
> >>
> >> Multiply by the multiplicative inverse of 2 mod 7, which is 4.
> >>
> >> 4 * 2 * x mod 7 ≡ 4 * 2 mod 7
> >>
> >> 8 * x mod 7 ≡ 8 mod 7
> >>
> >> 1 * x mod 7  ≡ 1 mod 7
> >>
> >> x ≡ 1 mod 7.
> >>
> >> That is, for x = 1, 8, 15, 22 ... 30x + 19 is divisible by 7, and
> >> hence not prime.
> >>
> >> Your "discoveries" are of no importance whatsoever.
> >>
> >>
> >>> 30x+17 is always NOT prime every seventh x (offset two from x for 30x+7)
> >>> and continuing for other zero columns.
> >>
> >> Can be proved (if it's true, I haven't checked) the same way as above.
> >>
> >
> > All these are prime (the first col is the value of x):
> >
> >   7       227
> >   21      647
> >   28      857
> >   42      1277
> >   49      1487
> >   56      1697
> >   63      1907
> >   98      2957
> >   105     3167
> >   126     3797
> >
> > not real sure what you mean by offset of 2 but if it turn 227 to 229
> > that is also prime
> 
> 
> Hi,
> 
> For the offsets here is the full list:
> 
> 30x+1 is always not prime every seventh x (for x starting at 3)
> 30x+7 is always not prime every seventh x (for x starting at 0)
> 30x+11 is always not prime every seventh x (for x starting at 6)
> 30x+13 is always not prime every seventh x (for x starting at 5)
> 30x+17 is always not prime every seventh x (for x starting at 2)
> 30x+19 is always not prime every seventh x (for x starting at 1)
> 30x+23 is always not prime every seventh x (for x starting at 7)
> 30x+29 is always not prime every seventh x (for x starting at 4)
> 
> How can I automatically find these formulas?

Setting aside that you messed up half of your "formulas"...

You are taking an expression of the form ax + b; and you are setting x=c+ky, and increasing y. 

This amounts to a(c+ky)+b = aky + (ac+b). 

If gcd(ak,ac+b)=1, then this expression will be prime for infinitely many values of y, but will be non-prime for infinitely many values of y. If gcd(ak,ac+b)>1, then this will not be prime for any value of y, except perhaps that if ac+b is prime, then y=0 gives you a prime.

You are taking a=30, k=7. So  your expressions are all of the form
30(c+7y) + b = 210y + (30c+b). Thus, you are looking for values of c and b for which gcd(210,30c+b)>1. Since 210 = 2*3*5*7, you want 30c+b to be divisible by one of 2, 3, 5, or 7. If b is divisible by 2, 3, or 5, you get that 30c+b is divisible by 2, 3, or 5 (respectively), so none of the values will be prime (except perhaps y=0, as detailed above). On the other hand, 30c+b is divisible by 7 if and only if 30c+b = 0 (mod 7), if and only if 2c+b=0 (mod 7), if and only if 2c=-b (mod 7), if and only if 2c=6b (mod 7), if and only if c=3b (mod 7). 

Thus, you will find a "rule" if and only if b is divisible by 2, 3, or 5; or c=3b(mod 7).

Your first example falls under the latter case, with c=3, b=1.
Your second example falls under the last case as well, with b=0, c=0.
Your third example is incorrect: your b is 11, so you would need to pick c=33 = 5 (mod 7). If you take c=5, so that you have

"30x + 11 is not prime every seventh value of x, starting at 5", then you would have a correct statement: 30(5+7y)+11 = 210y + 161, and this is always a multiple of 7.

Your third example fails because if b=13, you would need c=3(13)=39=4(mod 7); so you should instead have "30x + 13 is not prime every seventh value of x, starting at 4"; indeed, 30(4+7y)+13 = 210y + 133, always a multiple of 7.

Your fourth example has b=17, so you need c=51 = 2 (mod 7), which is why you have c=2.

Your fifth example has b=19, and c= 1, which works because 3(19) = 57 = 1 (mod 7).

Your sixth example takes b=23, so you need c=3(23) = 69 = 6(mod 7). Instead of "starting at 7" you need "starting at 6".


The final one has b=29, which means you need c=3(29) = 3 (mod 7); so instead of "starting at 4" you needed "starting at 3".

Of course, if b were a multiple of 2, 3, or 5, then it would be equally obvious that 30x+b is never prime (except when b=2, 3 or 5, and x=0). 

The integers b, 1<=b<=29 that are not multiples of 2, 3, or 5 are 1, 7, 11, 13, 17, 19, 21, 23, and 29, so the eight you write are the ones you can find when b is not a multiple of 2, 3, or 5. 

Note that 30x+b is prime infinitely often for any b that is relatively prime to 30.

-- 
Arturo Magidin

[toc] | [prev] | [next] | [standalone]


#330265

FromSylvia Else <sylvia@not.at.this.address>
Date2016-03-21 13:08 +1100
Message-ID<dl93dfF13b4U1@mid.individual.net>
In reply to#330234
On 21/03/2016 4:39 AM, Jamie Morken wrote:
> On 3/20/2016 6:51 AM, David Eather wrote:
>> On Sun, 20 Mar 2016 12:20:26 +1000, Sylvia Else
>> <sylvia@not.at.this.address> wrote:
>>
>>> On 20/03/2016 8:51 AM, Jamie Morken wrote:
>>>> Hi,
>>>>
>>>> I found a pattern in the prime numbers, I used an encoded binary
>>>> sequence, and the pattern became clearly visible:
>>>>
>>>> http://imgur.com/BI1rAp4
>>>>
>>>> That's all zeros and ones, depending on if a prime is at the
>>>> positions given by the formulas:
>>>>
>>>> y = 30x + 1
>>>> y = 30x + 7
>>>> y = 30x + 11
>>>> y = 30x + 13
>>>> y = 30x + 17
>>>> y = 30x + 19
>>>> y = 30x + 23
>>>> y = 30x + 29
>>>>
>>>> The pattern can be seen if the zeros and ones are displayed as
>>>> a bitmap, but only if there is the correct number of columns
>>>> in the bitmap, and that is the pattern I found, the column
>>>> count to show the pattern seems to be this for primorial30:
>>>>
>>>> 8*prime  (where 8 is how many coprimes 30 has)
>>>>
>>>> I tested prime 7 so far, but I think the pattern seen might hold
>>>> for larger primes too.
>>>>
>>>> When 8*7=56 columns are used ie here are the first 20 rows, all having
>>>> columns of zeros:
>>>>
>>>> 0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1,1,0,0,1,1,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>>>>
>>>> 1,0,1,1,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,1,0,0,0,1,0,1,1,1,1,1,0,0,0,0,1,0,0,1,0,0,1,1,0,0,1,1,1,1,1,1,0,0,1,1,0,0,
>>>>
>>>>
>>>>
>>>> 1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,0,1,1,0,1,0,0,0,1,0,0,1,1,1,0,0,0,1,1,1,0,0,1,0,1,0,1,0,1,0,1,0,0,0,0,1,0,1,1,0,1,
>>>>
>>>>
>>>>
>>>> 0,0,0,1,1,0,1,0,0,0,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,1,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,0,0,0,0,1,0,0,0,0,0,1,
>>>>
>>>>
>>>>
>>>> 0,0,1,1,1,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,1,0,0,1,1,0,1,0,0,1,0,0,0,1,1,1,1,0,0,0,1,1,1,0,0,0,1,0,0,0,0,0,0,
>>>>
>>>>
>>>>
>>>>
>>>> The columns of zeros match up to give these patterns that can be
>>>> verified:
>>>>
>>>> 30x+7 is always NOT prime every seventh x
>>>
>>> Obvious.
>>>
>>>> 30x+19 is always NOT prime every seventh x (offset one from x for
>>>> 30x+7)
>>>
>>> 30x + 19 mod 7 ≡ 2x + 5 mod 7.
>>>
>>> If we want the result to be divisible by 7, then
>>>
>>> 2x + 5 mod 7 ≡ 0
>>>
>>> 2x ≡ -5 mod 7 ≡ 2 mod 7.
>>>
>>> Multiply by the multiplicative inverse of 2 mod 7, which is 4.
>>>
>>> 4 * 2 * x mod 7 ≡ 4 * 2 mod 7
>>>
>>> 8 * x mod 7 ≡ 8 mod 7
>>>
>>> 1 * x mod 7  ≡ 1 mod 7
>>>
>>> x ≡ 1 mod 7.
>>>
>>> That is, for x = 1, 8, 15, 22 ... 30x + 19 is divisible by 7, and
>>> hence not prime.
>>>
>>> Your "discoveries" are of no importance whatsoever.
>>>
>>>
>>>> 30x+17 is always NOT prime every seventh x (offset two from x for
>>>> 30x+7)
>>>> and continuing for other zero columns.
>>>
>>> Can be proved (if it's true, I haven't checked) the same way as above.
>>>
>>
>> All these are prime (the first col is the value of x):
>>
>>   7       227
>>   21      647
>>   28      857
>>   42      1277
>>   49      1487
>>   56      1697
>>   63      1907
>>   98      2957
>>   105     3167
>>   126     3797
>>
>> not real sure what you mean by offset of 2 but if it turn 227 to 229
>> that is also prime
>
>
> Hi,
>
> For the offsets here is the full list:
>
> 30x+1 is always not prime every seventh x (for x starting at 3)
> 30x+7 is always not prime every seventh x (for x starting at 0)
> 30x+11 is always not prime every seventh x (for x starting at 6)
> 30x+13 is always not prime every seventh x (for x starting at 5)
> 30x+17 is always not prime every seventh x (for x starting at 2)
> 30x+19 is always not prime every seventh x (for x starting at 1)
> 30x+23 is always not prime every seventh x (for x starting at 7)
> 30x+29 is always not prime every seventh x (for x starting at 4)
>
> How can I automatically find these formulas?
>
> cheers,
> Jamie
>
>

In general, you want the following

m * (nx + f) + k == 0 mod n

Where m corresponds to your 30, n corresponds to your "seventh" and f is 
your offset (i.e. starting at...). Having chosen those three numbers, 
you can calculate k.

Expanding

m * nx + m * f + k == 0 mod n

The first term is always 0 mod n

So m * f + k == 0 mod n

m * f == -k mod n

-m * f == k mod n

To determine k from that, take the remainder of dividing (- m * f) by n 
(the remainder is negative), and then add n to it.

For example, if m is 30, f is 2, and n is 7, then we get

-m * f = -60. The remainder when dividing by 7 is -4, add 7 gives 3.

So 30x + 3 is not prime for every seventh x starting at 2.

Clearly you can add any muliple of n to k. In your example, you added 
twice 7, giving

30x + 17 is not prime for every seventh x starting at 2. However, if the 
result adding a multiple of 7 to k, is a number that is not coprime with 
30, then none of the results will be prime.

At least one of your examples is wrong:

If f is 6, then we get

-180 divided 7 gives remainder -5, so k is 2.

That is

30x + 2 is not prime for every seventh x starting at 6.

You said 30x + 11... starting at 6.

30 * 6 + 11 is 191, which is prime.

Sylvia.









[toc] | [prev] | [next] | [standalone]


#330272

FromJasen Betts <jasen@xnet.co.nz>
Date2016-03-21 05:02 +0000
Message-ID<ncnv8t$jlo$1@gonzo.alcatraz>
In reply to#330234
On 2016-03-20, Jamie Morken <jmorken@shaw.ca> wrote:
>
> 30x+1 is always not prime every seventh x (for x starting at 3)
> 30x+7 is always not prime every seventh x (for x starting at 0)
> 30x+11 is always not prime every seventh x (for x starting at 6)
> 30x+13 is always not prime every seventh x (for x starting at 5)
> 30x+17 is always not prime every seventh x (for x starting at 2)
> 30x+19 is always not prime every seventh x (for x starting at 1)
> 30x+23 is always not prime every seventh x (for x starting at 7)
> 30x+29 is always not prime every seventh x (for x starting at 4)

> How can I automatically find these formulas?

at-least one of them is wrong.



-- 
  \_(ツ)_

[toc] | [prev] | [next] | [standalone]


#330255

FromMandy Liefbowitz <mandyliefbowitz@the.port.side>
Date2016-03-21 00:18 +0000
Message-ID<p0fueb1lsu4jv1d5fgm68h80ie26tb3u10@4ax.com>
In reply to#330202
On Sun, 20 Mar 2016 13:20:26 +1100, Sylvia Else
<sylvia@not.at.this.address> wrote:


>
>Your "discoveries" are of no importance whatsoever.
>
  That comment is ever so sad but not entirely unexpected.

  Few "teachers", even here in what started as a multi-part
conversation between scientists, are equipped to encourage their
victims to chance being wrong or to stretch their wings for few
"teachers" can do those things themselves.
  Rote-processing of regurgitated pap is their limit.
  Fanning the spark of joy in learning and thinking and creating into
an inferno of brilliance is beyond such dullards.
   
  Crushing the spark is easy. So most "teachers" do that.


 "Jaime, your work is interesting and you are doing good thinking but
have you looked at it **this** way ..." while *helping* him see the
beauty and the magic of the crystal structure that is Mathematics
would have encouraged him.
 But I'm not astonished that you did not bother.
 So few "teachers" ever do.
 And that is sad. 
  
                                                         M. 

[toc] | [prev] | [next] | [standalone]


#330273

From"Tom Del Rosso" <fizzbintuesday@that-google-mail-domain.com>
Date2016-03-21 04:30 -0400
Message-ID<ncob7g$cqm$1@dont-email.me>
In reply to#330183
Jamie Morken wrote:
>
> 0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,1,0,0,
> 1,0,0,1,1,1,1,1,1,0,1,0,1,0,1,1,1,1,1,1,0,0,1,0,0,1,1,1,1,0,0,0,1,1,0,0,1,1,1,1,0,1,0,1,0,1,1,1,0,1,1,0,0,1,0,1,
> 1,0,1,1,0,1,1,1,0,1,1,1,1,0,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,0,1,1,1,1,0,0,1,0,1,1,1,1,0,1,1,1,0,0,
> 1,0,1,1,1,0,1,1,1,0,0,1,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,1,0,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,1,1,1,1,0,1,
[...]

If you look at it with your eyes slightly crossed there is a 3D picture 
of a rabbit!

-- 

[toc] | [prev] | [next] | [standalone]


#330275

FromR Kym Horsell <kym@kymhorsell.com>
Date2016-03-21 08:49 +0000
Message-ID<ncocjk$rm9$2@odin.sdf-eu.org>
In reply to#330273
In sci.math Tom Del Rosso <fizzbintuesday@that-google-mail-domain.com> wrote:
> Jamie Morken wrote:
>> 0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,1,0,0,
>> 1,0,0,1,1,1,1,1,1,0,1,0,1,0,1,1,1,1,1,1,0,0,1,0,0,1,1,1,1,0,0,0,1,1,0,0,1,1,1,1,0,1,0,1,0,1,1,1,0,1,1,0,0,1,0,1,
>> 1,0,1,1,0,1,1,1,0,1,1,1,1,0,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,0,1,1,1,1,0,0,1,0,1,1,1,1,0,1,1,1,0,0,
>> 1,0,1,1,1,0,1,1,1,0,0,1,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,1,0,1,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,1,1,1,1,0,1,
> [...]
> If you look at it with your eyes slightly crossed there is a 3D picture 
> of a rabbit!

To paraphrase an old joke, which part of ze rabbit did you see?


--
<https://pbs.twimg.com/media/Cd1nDu5WwAAjrzB.png>
[A]nti-intellectualism has been a constant thread winding its way through out 
political and cultural life, nurtered by the false notion that democracy 
means that 'my ignorance is just as good as your knowlege'.
-- Isaac Asimov, Newsweek, 21 Jan 1980

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | sci.math


csiph-web