Squares of Numbers from 70-130
Let the Number be X such that X is between 70 and 130.
Step 1: X-100.
Add this value to X.
The value will be the left most 2 or 3(As the case maybe) digits of the answer.
Step 2: Square (X-100)
This will be the right most 2 digits.
In case you get 3 digits, carry over to the left digit.
Example:
1) Number is 82.
82-100 = -18
82-18=64
Now 18 ^ 2 is 324.
3 will be carried over to 4 and that becomes 67.
Answer is 6724
2) 112
112-100 = 12
112 + 12 =124
124 will be the 3 left most digits.
12 ^ 2 is 144.
1 will be carried over to the 4 and
the Answer is 12544
Friday, June 6, 2008
Thursday, June 5, 2008
Speed Maths 1
A small post.
For Finding squares of numbers between 30-70
Say the number is 'X' and X is between 30 and 70.
Step 1: Find x-25.
X-25 will be the first digit/first 2 digits of the required answer.
Step 2:Find (50-X)^2
This will be the right most 2 digits.In case the square is a 3 digit number,
carry it over .
Example: 43
43-25
=18
50-43
=7
7 ^ 2 = 49
43 ^ 2 is 1849
Example 2:35
35-25=10
50-35=15
15 ^ 2 =225
Answer: 10, from 225 25 will be the 2 right most digits and carry over 2 to the 0 on the left side
So it becomes 1225.
Answer: 1225
For Finding squares of numbers between 30-70
Say the number is 'X' and X is between 30 and 70.
Step 1: Find x-25.
X-25 will be the first digit/first 2 digits of the required answer.
Step 2:Find (50-X)^2
This will be the right most 2 digits.In case the square is a 3 digit number,
carry it over .
Example: 43
43-25
=18
50-43
=7
7 ^ 2 = 49
43 ^ 2 is 1849
Example 2:35
35-25=10
50-35=15
15 ^ 2 =225
Answer: 10, from 225 25 will be the 2 right most digits and carry over 2 to the 0 on the left side
So it becomes 1225.
Answer: 1225
Tuesday, June 3, 2008
CoPrimes, Euler's Number and Fermat's theorem
Co-Primes are very important , when it comes to finding remainders.
First things first, What is a Co-Prime ?
2 numbers are said to be co-primes/relatively prime if their HCF is 1.
That is the 2 numbers have no other common factor apart from the number.
Co-Primes by themselves serve no purpose.You need to use them with
Fermat's theorem / Chinese Remainder Theorem etc.
Fermat's theorem states that
Remainder (x ^ ( Euler's Number of N) )/N ) = 1
Here X and N have to Co-Primes.
Now , what is Euler's Number?
Euler's number of a particular number is the number of co-primes less than
the number. The total number of co-primes that a certain number can have
is infinite. So we need to determine the number of coprimes less than the number.
Euler's number for a prime number P is P-1. As all numbers less than that
prime number will coprimes of the prime number. As in 1,2,3,4,5,6 will all be
coprimes of 7.
For other numbers :
Euler's Number of a number X = X(1-1/a)(1-1/b)....
Here a and b are the prime factors of the number.
We look at the number of the prime numbers that are factors of the given number.
We ignore the number of times the prime number occurs.
So say the number is 18.
18 has 2 and 3 as factors.
So Eulers No of 18 = 18(1-1/2)(1-1/3)
= 6
So if we get a sum like ,
Find the remainder when (11 ^ 97 )/7
1)See if 11 and 7 are relatively prime to each other
2)If they are relatively prime, Find the Euler's number of the denominator.
3)Express power in terms of the euler's number.
For eg, in this case the Euler's number for 7 is 6.
So 97 = 6k+1.
We know that if we can factorize the numerator in a division, the end remainder
will be the product of the remainders of each individual factor.
So this becomes (11 ^ 6)/7.....(16 times)* (11 ^ 1)/7
Now as per Fermat's theorem,
(11 ^ 6) /7 is 1.
So the answer is the remainder when (11^1) is divided by 7.
This can be used when the numerator can be factorized.
This can be used when the numerator and the denominator are co-primes/relatively prime.
Now The question arises what is they are not coprimes.
If 2 numbers are not co-primes,it means they have a common factor.
See if you can remove the common factor from both the numerator and denominator.
In case that can't be done , we will have to use other methods to find the remainder.
First things first, What is a Co-Prime ?
2 numbers are said to be co-primes/relatively prime if their HCF is 1.
That is the 2 numbers have no other common factor apart from the number.
Co-Primes by themselves serve no purpose.You need to use them with
Fermat's theorem / Chinese Remainder Theorem etc.
Fermat's theorem states that
Remainder (x ^ ( Euler's Number of N) )/N ) = 1
Here X and N have to Co-Primes.
Now , what is Euler's Number?
Euler's number of a particular number is the number of co-primes less than
the number. The total number of co-primes that a certain number can have
is infinite. So we need to determine the number of coprimes less than the number.
Euler's number for a prime number P is P-1. As all numbers less than that
prime number will coprimes of the prime number. As in 1,2,3,4,5,6 will all be
coprimes of 7.
For other numbers :
Euler's Number of a number X = X(1-1/a)(1-1/b)....
Here a and b are the prime factors of the number.
We look at the number of the prime numbers that are factors of the given number.
We ignore the number of times the prime number occurs.
So say the number is 18.
18 has 2 and 3 as factors.
So Eulers No of 18 = 18(1-1/2)(1-1/3)
= 6
So if we get a sum like ,
Find the remainder when (11 ^ 97 )/7
1)See if 11 and 7 are relatively prime to each other
2)If they are relatively prime, Find the Euler's number of the denominator.
3)Express power in terms of the euler's number.
For eg, in this case the Euler's number for 7 is 6.
So 97 = 6k+1.
We know that if we can factorize the numerator in a division, the end remainder
will be the product of the remainders of each individual factor.
So this becomes (11 ^ 6)/7.....(16 times)* (11 ^ 1)/7
Now as per Fermat's theorem,
(11 ^ 6) /7 is 1.
So the answer is the remainder when (11^1) is divided by 7.
This can be used when the numerator can be factorized.
This can be used when the numerator and the denominator are co-primes/relatively prime.
Now The question arises what is they are not coprimes.
If 2 numbers are not co-primes,it means they have a common factor.
See if you can remove the common factor from both the numerator and denominator.
In case that can't be done , we will have to use other methods to find the remainder.
Labels:
Coprimes,
Euler's,
Fermat's,
Numbers,
Remainders
Monday, June 2, 2008
Tests for Divisibility
Test for Divisibility:
This again is a very basic topic.
Most of u know the tests to check divisibility.
But how many of us know why those particular methods are employed ?
After the class, the logic behind the tests look so simple and I feel dumb
for not having realised this earlier.I guess most of you know the reason
as well. But I am sure there will be a fair number who don't know why.
For their sake, I am making this post.
For 3,9
Everybody knows that for 3 and 9 we find the digitsum and see if that
digit sum is divisible by 3 or 9 , whatever the case maybe.
Let us take a 2 digit number.
A two digit can be written as 10A+B
10A+B=9A+A+B
Now, 9A is always divisible by 3/9.So whether the number is divisible by 3 or 9
depends on A+B.
Any number will be of the form 10 ^ 3 A + 10 ^ 2 B + 10 C+10^0 D .....................
If we divide each co-efficient (i.e 10 ^ 0 , 10 ^ 1 , 10 ^ 2 ............) by 9, the remainder is +1.
That is why we add all the digits.
For 11,7..
Taking the previous example.
10 ^ 3 A + 10 ^ 2 B + 10 C+10^0 D
If we divide 10^0 by 11 remainder is +1.
if we divide 10 ^ 1 by 11 remainder is -1 or (10)
If we divide 10 ^ 2 by 11 remainder is + 1
If we divide 10 ^ 3 by 11 remainder is -1.
We see that for 11, it alternates between + and -.
That is why we use the difference of the sum of odd terms and sum of even terms and see if that difference
is divisible by 11.
For 7.
10 ^ 3 A + 10 ^ 2 B + 10 C+10^0 D
If we divide 10^0 by 7 remainder is +1.
if we divide 10 ^ 1 by 7 remainder is 3
If we divide 10 ^ 2 by 7 remainder is + 2
If we divide 10 ^ 3 by 7 remainder is -1 or (6)
Here we see the same pattern as in 11, but for every 3 digits.
Thats why for 7 we use difference of sum of alternate triplets.
The same holds good for 13 .
For 5,25,125.......
The first power of ten that exactly divides 5 is 1.
That is why we use the last digit of a number to see if it is
divisible by 5.
The first power of ten that exactly divides 25 is 2.
That is why we use the last 2 digits of a number to see if it is
divisible by 25
The first power of ten that exactly divides 125 is 3.
That is why we use the last 3 digits of a number to see if it is
divisible by 125
The first power of ten that exactly divides 4 is 2.
That is why we use the last 2 digits of a number to see if it is
divisible by 4
The first power of ten that exactly divides 8 is 3.
That is why we use the last 3 digits of a number to see if it is
divisible by 8
This again is a very basic topic.
Most of u know the tests to check divisibility.
But how many of us know why those particular methods are employed ?
After the class, the logic behind the tests look so simple and I feel dumb
for not having realised this earlier.I guess most of you know the reason
as well. But I am sure there will be a fair number who don't know why.
For their sake, I am making this post.
For 3,9
Everybody knows that for 3 and 9 we find the digitsum and see if that
digit sum is divisible by 3 or 9 , whatever the case maybe.
Let us take a 2 digit number.
A two digit can be written as 10A+B
10A+B=9A+A+B
Now, 9A is always divisible by 3/9.So whether the number is divisible by 3 or 9
depends on A+B.
Any number will be of the form 10 ^ 3 A + 10 ^ 2 B + 10 C+10^0 D .....................
If we divide each co-efficient (i.e 10 ^ 0 , 10 ^ 1 , 10 ^ 2 ............) by 9, the remainder is +1.
That is why we add all the digits.
For 11,7..
Taking the previous example.
10 ^ 3 A + 10 ^ 2 B + 10 C+10^0 D
If we divide 10^0 by 11 remainder is +1.
if we divide 10 ^ 1 by 11 remainder is -1 or (10)
If we divide 10 ^ 2 by 11 remainder is + 1
If we divide 10 ^ 3 by 11 remainder is -1.
We see that for 11, it alternates between + and -.
That is why we use the difference of the sum of odd terms and sum of even terms and see if that difference
is divisible by 11.
For 7.
10 ^ 3 A + 10 ^ 2 B + 10 C+10^0 D
If we divide 10^0 by 7 remainder is +1.
if we divide 10 ^ 1 by 7 remainder is 3
If we divide 10 ^ 2 by 7 remainder is + 2
If we divide 10 ^ 3 by 7 remainder is -1 or (6)
Here we see the same pattern as in 11, but for every 3 digits.
Thats why for 7 we use difference of sum of alternate triplets.
The same holds good for 13 .
For 5,25,125.......
The first power of ten that exactly divides 5 is 1.
That is why we use the last digit of a number to see if it is
divisible by 5.
The first power of ten that exactly divides 25 is 2.
That is why we use the last 2 digits of a number to see if it is
divisible by 25
The first power of ten that exactly divides 125 is 3.
That is why we use the last 3 digits of a number to see if it is
divisible by 125
The first power of ten that exactly divides 4 is 2.
That is why we use the last 2 digits of a number to see if it is
divisible by 4
The first power of ten that exactly divides 8 is 3.
That is why we use the last 3 digits of a number to see if it is
divisible by 8
Power cycles
I will make a series of posts detailing Power cycles,Divisibility Tests,Remainders
using Basic Remainder Theorem,Fermat's Theorem,Chinese Remainder theorem ,
Constant remainders in an A P and successive remainders.
Power cycles is an easy and fairly well known concept.
However for the benefit of those who donot know what it means
I will provide some explanation .
Power Cycles can be used to find the last digit of a number raised to some
power. Its limited in it's use as we can only get the last digit.
Now the idea is 1 raised to any power will end in 1.
So the power cycle for 1 is 1 with a frequency of 1.
For 2,it can be 2, 4, 8 and then 6 .After 6 we get 2 and the cycle repeats.
As in 2 ^ 1 = 2 , 2 ^ 2 =4,2^3 =8 ,2 ^ 4 =16, 2^ 5 =32 and so on.
Similarly for 3, It is 3,9,7 and 1
For 4, it is 4 and 6
For 5 it is 5
For 6 it is 6
And for 7 it is 7,9,3 and 1
For 8 it is 8,4,2,6
For 9 it is 9 and 1
For 0 it is 0.
So 2,3,7 and 8 have power cycles with frequency 4.
0,1,5,6 have power cycles with frequency 1.
4 and 9 have a frequency 2.
Now if we have to find the last digit of 2 ^ 73,
We need to express 73 as 4k+1/4k+2/4k+3/4k (4 because the
Frequency of 2’s power cycle is 4).
Here in this case it is in the format 4k+1 , so the last digit will be 2.
If it is of the form 4k+2, the last digit will be 4 and if 4k+3 then 8 and so on.
Similarly we can use it for all other numbers.
The post is getting bigger and bigger,
Will elaborate on other concepts in a separate post.
using Basic Remainder Theorem,Fermat's Theorem,Chinese Remainder theorem ,
Constant remainders in an A P and successive remainders.
Power cycles is an easy and fairly well known concept.
However for the benefit of those who donot know what it means
I will provide some explanation .
Power Cycles can be used to find the last digit of a number raised to some
power. Its limited in it's use as we can only get the last digit.
Now the idea is 1 raised to any power will end in 1.
So the power cycle for 1 is 1 with a frequency of 1.
For 2,it can be 2, 4, 8 and then 6 .After 6 we get 2 and the cycle repeats.
As in 2 ^ 1 = 2 , 2 ^ 2 =4,2^3 =8 ,2 ^ 4 =16, 2^ 5 =32 and so on.
Similarly for 3, It is 3,9,7 and 1
For 4, it is 4 and 6
For 5 it is 5
For 6 it is 6
And for 7 it is 7,9,3 and 1
For 8 it is 8,4,2,6
For 9 it is 9 and 1
For 0 it is 0.
So 2,3,7 and 8 have power cycles with frequency 4.
0,1,5,6 have power cycles with frequency 1.
4 and 9 have a frequency 2.
Now if we have to find the last digit of 2 ^ 73,
We need to express 73 as 4k+1/4k+2/4k+3/4k (4 because the
Frequency of 2’s power cycle is 4).
Here in this case it is in the format 4k+1 , so the last digit will be 2.
If it is of the form 4k+2, the last digit will be 4 and if 4k+3 then 8 and so on.
Similarly we can use it for all other numbers.
The post is getting bigger and bigger,
Will elaborate on other concepts in a separate post.
Subscribe to:
Posts (Atom)