Showing posts with label prime numbers. Show all posts
Showing posts with label prime numbers. Show all posts

Saturday, March 12, 2016

Prime Factors: Part 6

Prime Factors:
The Chart


Finally, Down to the basic formulas.  In this chart, or more specifically, diagram, one can find all the parts of the formulas used to determine whether a large number is divisible by a particular prime number.

Usually, a large number is reduced first by dividing by 2, 3, 5 and 7.  Then, an estimate of the square root of the remaining number gives the upper limit for searching for prime factors.  The chart works for the double digit primes as well as for "03" and "07."

The "rule" of the "sum of the digits" for the 3 can be derived from the X3 quadrant, assuming the format of "03."  Likewise, plugging "07" into the X7 quadrant gives the "trick" or "rule" for finding out if a number is divisible by that prime number.

To review:

For divisibility
 by 2: Look for the even number on the end.
 by 3: The sum of the digits will be divisible by 3.
 by 5: Look for the 5 (or 0, but see 2) at the end of the number.
 by 7: Using the formula for the X7 primes: For "07"10x+n = x-(n*(0+2))
          That is, for divisibility by 7, for any number "10x+n" take twice n from x until you get to a multiple of 7.

Double digit primes below 100 are on the chart.  Larger primes can be added remembering to put them in the right "family."

101 is in the X1 family, Therefore, plugging it into the formula: 10-(1*10) => K*X1.  Of course, with the zero in the middle, numbers up to 10,000 are easy to spot as multiples of this prime!

8989 => 898-90 = 808. Of course, that choice was influenced by my building the chart.  I put up a reduplicative whole number!

Really big odd numbers always give us a challenge.  Once divisibility by 3 and 5 are eliminated, the chart come into play.  I am going to blindly punch in 7 digits, making sure that the end number is not even or a 5.

7351613.  7+3+5+1+6+1+3 = 26.  So, not divisible by 3.

Let us try 7.

7351613 => 735161-(3*2)=> 735155=> 735155-(5*2)=> 735145=> 7351-(5*2)=> 734-2=> 732. 
732 is not divisible by 7.

What about 11?

7351613 => 735161-3=> 73515-8=> 73507=>7350-7=> 7343=> 431=> 42.  Nope.

So, 13?

7351613 => 735161+(3*4) = 735173 => 73517+(3*4) = 73539 => 7353+(9*4) = 7381 => 738+4 =
742 => 74+(2*4) = 74+8 = 82.  13 does not work. 

Which of the two attempts got closer?  42 is 2 away from 44, while 82 is 4 away from 78.  Perhaps the X1 family offers a better chance.

What of 31, which requires a multiplier of 3, two away from 1.

7351613 => 735161-3*6=> 7350-9*3=> 732-3*3=> 72-1*3 = 69.  69 = 62+7.  Further away!


So, let us first estimate a square root by dividing the seven digits into groups of two starting from the right.

7 35 16 13.  The square root will be a number between 2000 and 3000.  2,500*2,500 = 6,250,000.
So, my guess is that the limit of possibilities lay somewhere around 2750.  Ending in a 3, the number is not an exact square.  A lot of work to go, but I think I've written enough.

So, what do I know?

The search for primes continues past 97.  But, placing all possible primes in the four "families" makes the job a bit easier.  Once the one gets past division by 7, at least without a calculator, having derived a family formula helps to discover larger primes by elimination.

I have not memorized the above chart, but I did use simple math to derive the formulae.  The exercise of my brain has staved off mental deficiencies for at least a few months!

I don't know if finding the largest prime number yet is worth the effort, but perhaps using this chart will help someone in the search.

I know that the chart will help an inquiring mind find proof that 7,351,613 is not prime.  I challenge a reader, whether a friend or an random reader, to send me the prime factor.  You DO have a clue.
  

Friday, March 11, 2016

Prime Factors: Part 5

Prime Factors:
The 19 Family

Rightfully, this should be called the "9" Family, but alas, 9 is not a prime number.  However, as a member of the 19 family, 9 come holds an honored place in mathematics.  In the  similar "warped mirror" 11 family the 1 performed a similar place of honor.  1 is not a prime, for it does not have another factor.

Like 1, whose difference from 0 is a +1, 9 is different from 10 by 1, but it is a negative difference.  As such, the key to discerning the 19 family of primes is seeing a difference of 1 per 10 following a plus sign.  As you may recall, with the 11 family the multiplier followed a minus sign.

And so, starting with 19, let's build that table:

19 => 1+(9*2) = 1+18 = 19
29 => 2+(9*3) = 2+27 = 29

and so on. I will throw in the "09" to show the full sequence.

09 => 0+(9*1) = 0+9  =  9 -- not prime
19 => 1+(9*2) = 1+18 = 19
29 => 2+(9*3) = 2+27 = 29
39 => 3+(9*4) = 3+36 = 39 -- not prime
49 => 4+(9*5) = 4+45 = 45 -- not prime
59 => 5+(9*6) = 5+54 = 59
69 => 6+(9*7) = 6+63 = 69 -- not prime
79 => 7+(9*8) = 7+72 = 79
89 => 8+(9*9) = 9+81 = 89
99 => 9+(9*10)= 9+90 = 99 -- not prime

Half of the family are not prime numbers.  This no surprise when the "father" of the family is the one odd number among single digits that is a square.  Note that there is one more square in the family: the number 49.  A blessed family indeed.

As before, this blog would not be complete if we did not have and example or two.  I will start with a random 5 digit number and a random family member.

The random number: 54,977 -- my finger bounced on the 7, but let's go with it. Seeing the 54, let's use 59.

54,977 = 5497+(7*6) = 5497+42=5539 => 553+(9*3)=553+27= 580

58 is not divisible by 59, but came so very close!

Now, I will take the number 5497 from step two above and multiply it time 59.

324,323 => 32432+(3*6)=32432+18=32450 => 32450=>3245
3245 => 324+(5*6) = 324+30 = 354 => 35+(4*6)= 35+24 = 59.

That took some time, but we didn't have to use a calculator.  Well, I used one to get the original number, but I didn't have to.  Working with the "9 family" all I had to do was multiply by 60 and subtract the original number.

      5,497
         x 60
   329,820
    - 5,497
   324,323

I love "short cuts."  Looking at the number another way, I could have taken 5500*59 - 3*59.  That is, (5500-3)(59).  But that would have taken longer.

Now, no more nonsense.  One more example, using a manufactured number multiplying some simple primes, the last one being an unknown member of the 19 family.


33,495/5 =
6,699/11 = 
609/3    =
203 => 20+(3*3) = 29.  203/29 = 7

5*11*3*7*29 = 33,495.

Okay, I could have used the test from the 7 family first, but  please note:

20+(3*x) = 29
           3x = 29-20 = 9
             x = 3

So, what do I know?

The patterns for the "families" of prime numbers are easy to discern.  There are four such families.  The 3 and 7 families are "mirror images" of each other, as are the 11 and 19 families.  I will include a neat chart on my next blog post.

For now, here is the chart for the "19" family.


19 => 1+(9*2) = 1+18 = 19
29 => 2+(9*3) = 2+27 = 29
59 => 5+(9*6) = 5+54 = 59
79 => 7+(9*8) = 7+72 = 79
89 => 8+(9*9) = 9+81 = 89

Note the form:

X+9 = (X/10)+[9*(X+1)]



Thursday, March 10, 2016

Prime Factors: Part 4

Prime Factors:
The Royal Sevens

It is said by those who study such things that the number seven is the number of completion.  This is, of course, based on the creation of the world being finished in six days and God resting on the seventh day.  I accept this, for it was codified along with the fourth commandment on tablets of stone.

It is for this reason that I have decided to call the related primes ending in the number 7 the "Royal Family" of primes.  Seven is a combination of three and the first square number, that is, the number 4.

However, the important feature is the relationship with the number 5.  It just so happens that 7 is a "mirror image" of 3. Where 3 is two less that 5, 7 is two more.  This translates into a chart very much like that of the threes.

However, in this case, subtraction back to the 5 will get the answer we need. I will start with 17 and backtrack back to 7.

What relationship does 1 have to 7 to get a something divisible by 17.  It so happens that 5 times 7 is 35 and 2 times 17 is 34.  That looks good, since they are just 1 apart.

The bigger number is the 35, so the operation will have to be subtraction.  It will look odd, but the multiples in our present format will all be negative integers.  But, then I know that -1 is just as good a factor as +1.

Here is the chart (with seven as "07" inserted)

07 => 0-(7*2) = 0-14  =  -14
17 => 1-(7*5) = 1-35  =  -34
27 => 2-(7*8) = 2-56  =  -54    
37 => 3-(7*11)= 3-77  =  -74
47 => 4-(7*14)= 4-98  =  -94
57 => 5-(7*17)= 5-119 = -114
67 => 6-(7*20)= 6-140 = -134
77 => 7-(7*23)= 7-161 = -154
87 => 8-(7*26)= 8-186 = -174
97 => 9-(7*29)= 9-203 = -194

Just like with the threes in the mirror, the multipliers increase by 3.  In this case, they start with 2 instead of 1, so the "mirror" is a bit warped.  The columns are not as neat as the numbers on the left don't match those on the right.  We actually have to do some math to see what is happening here.

When you put a candidate for division in the left column the format makes more sense.  However, with the multipliers getting into the twenties, we need to step back and concentrate on getting our math right.

Let's pick 37 as our prime.  I will use a very simple multiple of 37 to illustrate the formula:

111 => 11-(1*11) = 11-11 = 0. As a matter of fact, 37 times 3 is 111.

To get a more obvious answer, let us use the square of 37.

1369 => 136-(9*11) = 136-99 = 37.  Yep, 37 is a factor of 37!

One more thing, since 7 is 5+2, if you need to multiply something by 7, you only need to know the twos table and addition.

789 x 7 = ???
789 x 10 = 7890
7890/2 = 3945
789*2  = 1578
                          3945                         
+1578
    5523 

Or, 7 = 10-3.  With 3 = 2+1. Good old twos tables and subtract. Or, of course, just learn the seven's table. Oh, yeah, you can use a calculator!


So, what do I know?

Because of the special relationship between 5 and 2, the tables for the 3 and 7 families look much alike.  Practically mirror images, one finds a "positive" difference by adding, while the other uses the "negative" difference by subtracting.  Each progresses by a factor of 3 between decades.

And so, the chart with only the primes:

07 => 0-(7*2) = 0 -14 =  -14
17 => 1-(7*5) = 1 -35 =  -34
37 => 3-(7*11)= 3 -77 =  -74
47 => 4-(7*14)= 4 -98 =  -94
67 => 6-(7*20)= 6-140 = -134
87 => 8-(7*26)= 8-186 = -174





Wednesday, March 9, 2016

Prime Factors: Part 2

Prime Factors:
The 3 family

We have taken it as a maxim that the sum of the digits will let us know if a number is divisible by 3.  But when we put it with its family, we see a clear pattern, while at the same time "proving" the maxim.

03 => 0+(3*1) = 3.

That is quite obvious, but using the formula on bigger numbers, removing the digit to the far right and adding it to  a tenth of the digits to its left, we can see WHY our maxim is true:

2853 => 285-9 = 276 => 27-18 = 9 (3*3)

2+8+5+3 = 18 (3*6); if in doubt, keep going: 18 => 1+8 = 9

Amazingly, the multipliers progress by 3, and in the third and fourth columns below, the family relationship is abundantly clear!


03 => 0+(3*1)   = 0+03 = 03
13 => 1+(3*4)   = 1+12 = 13
23 => 2+(3*7)   = 2+21 = 23
33 => 3+(3*10) = 3+30 = 33*
43 => 4+(3*13) = 4+39 = 43
53 => 5+(3*16) = 5+48 = 53
63 => 6+(3*19) = 6+57 = 63*
73 => 7+(3+22) = 7+66 = 73
83 => 8+(3*25) = 8+75 = 83
93 => 9+(3*28) = 9+84 = 93*

Building this table is easy, especially when you remember to add 3 to the multiplier, but then again, this is the "3 family."

Column 1, start with 0, add one per row.
Column 2, 3 all the way down
Column 3, just like #1 followed by "+"
Column 4, just like 2, but proceed with "("
Column 5, start with 1, add 3 per row
Column 6, same as #3
Column 7, start with 03, add 9 per row. Close with ")"
Column 7a repeats the 3 and goes on to 8
Column 7b starts with {1}3 and goes down to {0}4
Column 8, start with 03 and add 10 per row.

Wow.  I'm not sure if that is "easy" or not.  The second half presents us with a problem of large numbers as factors.  However, notice that one of them is 13 (in the family).

A second, easier, factor presents itself on down the line.  Since 30 is obviously in the family, and when added to 13 gives us 43, we have an alternative to multiplying by 13.

43 => 4-(3*30) = 4-90 = -86  (-2*43).

The other factors for primes -- 53, 73 and 83 -- use factorable numbers: 16, 22, and 25 (two squares and 2*11).  The 3 family is a math friendly family all around.

So, what do I know?

I know that fabulous patterns emerge if one looks closely.  These patterns are demonstratable using the properties of math, and can be proven.  However, it is much easier just to experiment with the results.


Here is the "chart" with only the primes:

03 => 0+(3*1)  = 0+03 = 03 (special case 1*)
13 => 1+(3*4)  = 1+12 = 13
23 => 2+(3*7)  = 2+21 = 23

43 => 4+(3*13) = 4+39 = 43 (special case 2*)
53 => 5+(3*16) = 5+48 = 53 (16 = 4*4)

73 => 7+(3+22) = 7+66 = 73 (22 = 2*11)
83 => 8+(3*25) = 8+75 = 83 (25 = 5*5)

*1 Adding the digits and reducing to a recognizable multiple of 3 works for this.  The square of 3 is 9, leaving a bonus indicator for divisibility by 9.  If the number is even, then both 2 and 3 are prime factors.

*2 Beyond 39 (3*13), so an alternative using 30 (3*10) presents itself:

43 => 4-(3*30) = 4-90 = -86 (-2*43)

Happy calculating!


Tuesday, February 23, 2016

Prime Factors

Though multiplication and its inverse, division, are performed easily with all whole numbers, the principle of equivalency leaves an easier solution to working with many of them.  The practice of "finding the factors" need not end with big numbers. In taking on large numbers, it is perfectly alright to break them up into the numbers from which they came by way of multiplication.

Even Numbers.

One half of all natural numbers are "even," this is to say they can be divided by the number 2.  Two is the first "prime" factor.  Almost everyone remembers the cheer: "Two, four, six, eight, who do we appreciate?"  Well, those are the first four "even" numbers, which hypothetically go on forever.  Along with the the beginning whole number "0," these provide the clue that a number has at least three factors: 1, 2 and the number in question.

Whether you multiply an even or an odd number by an even number, the answer will be even.

For example:  1234 is an even number, and therefor is not a prime number.  Its factors are 1, 2 and 617.  Is 617 a prime number?  Well, it isn't even.  Two is the only "even" prime number, so let us move on to other "prime suspects"

Odd Numbers

The other half of all natural numbers are odd.  This does not mean they are prime, but it makes task of finding big prime numbers a little easier.  I am not one to pursue such a task.  Suffice it to say that an odd number needs to be approached with care.  It can have hidden factors just waiting to be discovered.

Taking the factor of 1234 -- 617 -- the first thing is to find that number's square root.  This is best done with a calculator, but I recognize this as close to 25x25, that is 625.  This sets the limit.  A prime factor would have to be under 25, but not by much.  23x23 has a product 529.

Dropping back to the basics, then, we start with 3.  By theorem, the sum of the digits of any number must be divisible by 3 if the number is divisible by 3. 6+1+7 = 14.  14 is not divisible by 3.

The next prime number is 5. "Counting by fives" is easy, and it reveals to numbers, one even and one odd.  Every even number ending in 0 is divisible by 2 and 5.  This is two for one!  So, 617 is not divisible by 5 either.

The last odd number under 10 is the number 7.  There is no easy way to tell if a number is divisible by 7.  In the case of 617, we see a seven, but the first two numbers return a remainder of 5, leaving 57 (not divisible by seven.  Knowing the multiples of 7 up to at least 9x7 is advisable.

Note that multiplying an odd number by an odd number will get an odd number:

1x1 = 1 5x5 = 25 9x9 = 81
3x3 = 9 5x7 = 35
3x5 =15 5x9 = 45
3x7 =21 7x7 = 49
3x9 =27 7x9 = 63

With the factors 11, 13, 17, 19, and 23, only 11x17 even remotely comes close. However though 11x17 ends in 7, it is far from 617. What about 11x27?  That gets closer, but is far short as well (270 + 27 = 297).

So, 617 is indeed prime.

The most important products to know are those of the prime numbers 2, 3, 5 and 7.  Note, standing by itself is the number 49!  The "new" answer to the universal question!

2|  4
3|  6  9
5| 10 15 25
7| 14 21 35 49
      2  3  5  7 


Finding prime factors:


Starting with 2, what are the prime factors of 7,984,356 (a totally random seven digit number!)

Immediately 2 "works."  Trying 4, we get 1,996,089. Not even, so on to 3.  These digits are 1+9+9+6+0+8+9.  Added this gives us 42; reducing further to 6

So, with factors 2x2x3, we can divide by 12 to get 666,563  Is ths as far as we can go?  Not divisible by 5, so we try 7, 11, 13 and 17.  Seventeen works, yielding 39,139.

This leaves factors of 1, 2, 3, 4, 6, 12, 17, and 39,139.

Using a handy calculator, I know that the square of that large number is just under 198.  197 is a prime number having as its square 38,809. 197 times 199, the next prime number, equals 39,203. This means there are no more prime factors of our chosen number.

The prime factors of 1,996,089 are 2,3,17 and 39,139.


So, what do I know?

Odd x odd = Odd number
Odd x even = Even number
Odd + even = Odd number
Odd + odd = Even number

A prime number is a natural number that has exactly two natural divisors: 1 and itself.

2, 3, 5 and 7 are prime numbers under 10.

Even number 2 is the powerhouse of the primes, affecting ALL even numbers.

Odd number 3 can be seen to be a factor if the sum of the digits add up to a number divisible by 3.

Odd number 5 shouts out from the end of one of its products.  If the even number 0 is there, the 2 and 5 are instantly known.

Seven times seven is forty-nine (7x7=49). Every digit between 1 and 9 shows up as the final digit of multiples of 7.  So, don't look for an easy out here.

All prime numbers larger than 2 are odd numbers. About one in four numbers is prime (in the first 200 natural numbers, at least).

The factors of any number start with one and end with the square root of that number.