Professional Documents
Culture Documents
Number Theory
Number Theory
Number Theory
Divisibility
}
m devides n
or m\n
n is divisible by m
n/m gives both int and float. But m\n always gives int.
gcd(12,18)=6 lcm(12,18)=36
Euclids Algorithm:
gcd(m,n)=m’m+n’n
where,
m’ & n’ are integer and can be negative/positive number also
gcd(12,18)
Prove that if k\m and k\n then k\gcd(m,n)
Primes
Any positive number P is prime if P is divisible by 1 and P only.
Prime Factorization:
12=2X2X3
18=2X3X3
Prove that, any positive integer (n) can be written as a product of primes and it is unique
Prime-exponent Representation
1. k=mn kp=mp+np
n n!
0 1
1 1
2 2
0! = 1
3 6 n! = (n-1)!n
4 24
5 120
6 720
7 5040
Prove that n! increases exponentially or n! is plenty big.