Sideway
output.to from Sideway
Number Theory

NumberPrime NumberFactorization

DivisibilityFactorizationPollard's p-1 Method


`-=[]โŸจโŸฉ\;',./~!@#$%^&*()_+{}|:"<>? ๐‘Ž๐‘๐‘๐‘‘๐‘’๐‘“๐‘”โ„Ž๐‘–๐‘—๐‘˜๐‘™๐‘š๐‘›๐‘œ๐‘๐‘ž๐‘Ÿ๐‘ ๐‘ก๐‘ข๐‘ฃ๐‘ค๐‘ฅ๐‘ฆ๐‘ง ร…โ€‰โˆ’โ€‚ร—โ€ƒโ‹…โˆ“ยฑโˆ˜๊žŠ๏นฆโˆ—โˆ™ โ„ฏ ๐”ธ๐”นโ„‚๐”ป๐”ผ๐”ฝ๐”พโ„๐•€๐•๐•‚๐•ƒ๐•„โ„•๐•†โ„™โ„šโ„๐•Š๐•‹๐•Œ๐•๐•Ž๐•๐•โ„ค๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐‘€๐‘๐‘‚๐‘ƒ๐‘„๐‘…๐‘†๐‘‡๐‘ˆ๐‘‰๐‘Š๐‘‹๐‘Œ๐‘ โˆผโˆฝโˆพโ‰โ‰‚โ‰ƒโ‰„โ‰…โ‰†โ‰‡โ‰ˆโ‰‰โ‰Œโ‰โ‰ โ‰ก โ‰คโ‰ฅโ‰ฆโ‰งโ‰จโ‰ฉโ‰ชโ‰ซ โˆˆโˆ‰โˆŠโˆ‹โˆŒโˆ โŠ‚โŠƒโŠ„โŠ…โІโЇ ๐›ผ๐›ฝ๐›พ๐›ฟ๐œ€๐œ๐œ‚๐œƒ๐œ„๐œ…๐œ†๐œ‡๐œˆ๐œ‰๐œŠ๐œ‹๐œŒ๐œŽ๐œ๐œ๐œ‘๐œ’๐œ“๐œ” โˆ€โˆ‚โˆƒโˆ…โฆฐโˆ†โˆ‡โˆŽโˆžโˆโˆดโˆต โˆโˆโˆ‘โ‹€โ‹โ‹‚โ‹ƒ โˆงโˆจโˆฉโˆช โˆซโˆฌโˆญโˆฎโˆฏโˆฐโˆฑโˆฒโˆณ โˆฅโ‹ฎโ‹ฏโ‹ฐโ‹ฑ โ€– โ€ฒ โ€ณ โ€ด โ„ โ— สน สบ โ€ต โ€ถ โ€ท ๏น ๏น‚ ๏นƒ ๏น„ ๏ธน ๏ธบ ๏ธป ๏ธผ ๏ธ— ๏ธ˜ ๏ธฟ ๏น€ ๏ธฝ ๏ธพ ๏น‡ ๏นˆ ๏ธท ๏ธธ โœ   โ   โŽด  โŽต  โž   โŸ   โ    โก โ†โ†‘โ†’โ†“โ†คโ†ฆโ†ฅโ†งโ†”โ†•โ†–โ†—โ†˜โ†™โ–ฒโ–ผโ—€โ–ถโ†บโ†ปโŸฒโŸณ โ†ผโ†ฝโ†พโ†ฟโ‡€โ‡โ‡‚โ‡ƒโ‡„โ‡…โ‡†โ‡‡ โ‡โ‡‘โ‡’โ‡“โ‡”โ‡Œโ‡โ‡โ‡•โ‡–โ‡—โ‡˜โ‡™โ‡™โ‡ณโฅขโฅฃโฅคโฅฅโฅฆโฅงโฅจโฅฉโฅชโฅซโฅฌโฅญโฅฎโฅฏ
Draft for Information Only

Content

Pollard's p-1 Method
โ€ƒโ€ƒ PowerSmooth Number Method
โ€ƒโ€ƒโ€ƒ PowerSmooth Number
โ€ƒโ€ƒโ€ƒโ€ƒ Example of PowerSmooth Number
โ€ƒโ€ƒโ€ƒ Pollard's P-1 Methed by PowerSmooth Number
โ€ƒโ€ƒ Pollard's P-1 Method by PowerSmooth Number Example 1
โ€ƒโ€ƒโ€ƒ Fermat's Little Theorem
โ€ƒโ€ƒโ€ƒ Greatest Common Divisor

Pollard's p-1 Method

Pollard's p-1 method is a prime factorization algorithm discovered by John Pollard in 1974. Limited by the algorithm, the Pollard's p-1 method is only work for integers with specific factors.

One issue of the Pollard's p-1 method by smooth number is the value of k is usually much larger than needed in order to ensure p-1 divides k. Therefore alternative selection of k are developed to reduce the time of computation. Alternative methods of selection of k are

  • limit the index or power ei  for each prime factor pi such that the prime power is just less than and equal to เธเธดn.

  • let k equal to B!

  • let k equal to the least common multiple of 1,2,3,...B

Although these methods can reduce the value of k, there is also the possibility that the prime factor p with p-1 is B-smooth of a number n is excluded such that p-1 does not divide k.

PowerSmooth Number Method

PowerSmooth Number

Another number choosing method for integer k is the making use of the concept of powersmooth number and the specific type of prime factor, i.e. p-1 is the product of primes.

Let x and B be integers. x is said to be B-powersmooth if all the prime power for dividing n are less than or equal to B.

image
Example of PowerSmooth Number
B B-powersmooth numbers Prime Factors
2,3,4,5,6,7,8,9,10,11,... 1 20,30,50,70,110,...
2,3,4,5,6,7,8,9,10,11,... 2 21,
3,4,5,6,7,8,9,10,11,... 3 31,
4,5,6,7,8,9,10,11,... 4 22,
5,6,7,8,9,10,11,... 5 51,
3,4,5,6,7,8,9,10,11,... 6 21,31,
7,8,9,10,11,... 7 71,
8,9,10,11,... 8 23,
9,10,11,... 9 32,
5,6,7,8,9,10,11,... 10 21,51,
11,... 11 111,

Unlike smooth number, B is usually considered as the maximum boundry of a group of number. Therefore B can be prime number or composite number providing that B is greater than or equal to the largest prime power factor of x.  The key information from a B-powersmooth number is the prime power factor of a number. The lowest B-powersmooth of a number is larger than or equal to the greatest prime power factor of the number.

Unlike B-smooth number, B-powersmooth number represents a finite set of numbers. Imply

image

Therefore, x can be defined as the least common multiple of the numbers from 1 to B. Imply

image

Pollard's P-1 Methed by PowerSmooth Number

Since p-1 divides k, by assuming p-1 is B-powersmooth, if k is also B-powersmooth then the choosen integer k should be sufficienly large to ensure p-1 divides k. Therefore k is equal to the  least common multiple of all numbers less than and equal to B. Imply

image

Let k equal to xB. Assume p-1 is B-powersmooth, then p-1 divides k.

Pollard's P-1 Method by PowerSmooth Number Example 1

For example: n=203=p*q=7*29; let B=5 imply

Integern">Integer B-powersmooth number Prime Factors number
k 5 22*31*51 = 4*3*5 60

Therefore for B=5, kfor B=5, k5 or (p5-1)m5 is equal to 60.

Fermat's Little Theorem

let a=2, by Fermat's little theorem, let p be one of the prime factors of n, imply p divides ak-1.

image

Greatest Common Divisor

Since ak-1 is a very large number, before finding the greatest common divisor of n and ak-1,  ak-1 can be raised to the high power modulo n. Imply

Using squarings modulo

base  number; a=2; k=60; n=203
ak base 10 260
ai base 10 21  = 21 เธ๏ฃƒ 2 (mod 203)
22 = 22 ≡ 4 (mod 203)
24 = 42 ≡ 16 (mod 203)
28 = 162 ≡ 53 (mod 203)
216 = 532 ≡ 170 (mod 203)
232 = 1702 ≡ 74 (mod 203)
 ak base 10 232+16+8+4
 ak base 10 232*216*28*24
ak base 10 74*170*53*16 ≡ 190 (mod 203)

Imply

image

The greatest common divisor of n and ak-1 is

Using Euclid's algorithm

ak-1 n
260-1 203
190-1 203
189 203
189 203-189
189 7
189-27*7 7
0 7

Imply

image

Integer 7, the greatest common divisor of n and ak-1 is also the prime divisor of n. And p-1 is  5-powersmooth.

Integer B-powersmooth number Prime Factors number
p-1 3, 5 21*31 6
k 5 22*31*51 = 4*3*5 60
k/(p-1)   21*30*51 10

Since the greatest prime power factor of p-1 is 3-smooth also. And therefore the prime factor 7 can also be found by using B=3

Integer B-powersmooth number Prime Factors number
p-1 3 21*31 6
k 3 21*31 = 2*3 6
k/(p-1)   20*30 1

let a=2, by Fermat's little theorem, imply p divides  26-1 ≡ 63 (mod 203)

The greatest common divisor of n and ak-1 is gcd(63,203)= 7

And 7 is the prime divisor of n as before.


ยฉsideway

ID: 120500009 Last Updated: 5/17/2012 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 9

Culture

Chinese 1097

English 339

Travel 38

Reference 79

Hardware 55

Computer

Hardware 259

Software

Application 213

Digitization 37

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 290new

Unicode 504

HTML 66new

Common Color 1new

Html Entity (Unicode) 1new

Html 401 Special 1

CSS 65new

Selector 1

SVG 46

ASP.NET 270

OS 447new

MS Windows

Windows10 1new

.NET Framework 1

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Set 1

Logic 1

Algebra 84

Number Theory 207new

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2026 Sideway . All rights reserved Disclaimers last modified on 06 September 2019