Application Center - Maplesoft

App Preview:

Algebra I & II: Complete Set of Lessons

You can switch back to the summary page by clicking here.

Learn about Maple
Download Application


 

A01-NatureofNumbers.mws

High School Modules > Algebra by Gregory A. Moore

The Nature of Numbers


An exploration of the various subsets and properties of the real numbers, and interesting features of each.

[Directions : Execute the Code Resource section first. Although there will be no output immediately, these definitions are used later in this worksheet.]

1. Natural Numbers and Whole Numbers


Mankind began as most children do...counting objects they see. Numbers are the first level of abstraction in mathematics because there is nothing in common with five apples, five rocks, and five days... except the number five!

> restart;

> `\nSome Natural Numbers ` = {k $ k = 1..100};

`\nSome Natural Numbers ` = {1, 2, 3, 4, 5, 6, 7, 8...
`\nSome Natural Numbers ` = {1, 2, 3, 4, 5, 6, 7, 8...
`\nSome Natural Numbers ` = {1, 2, 3, 4, 5, 6, 7, 8...
`\nSome Natural Numbers ` = {1, 2, 3, 4, 5, 6, 7, 8...


It took many centuries before mankind introduced a new number ...0... a number which signifies no objects at all. This was a huge step.

> `\nSome Whole Numbers ` = {k $ k = 0..100};

`\nSome Whole Numbers   ` = {0, 1, 2, 3, 4, 5, 6, 7...
`\nSome Whole Numbers   ` = {0, 1, 2, 3, 4, 5, 6, 7...
`\nSome Whole Numbers   ` = {0, 1, 2, 3, 4, 5, 6, 7...
`\nSome Whole Numbers   ` = {0, 1, 2, 3, 4, 5, 6, 7...

>

2. How Big Can Numbers Get?


Pretty big!

> 3^2; `\nThis has this many digits :` ,length(%);

9

`\nThis has this many digits :`, 1
`\nThis has this many digits :`, 1

> 3^20; `\nThis has this many digits :` ,length(%);

3486784401

`\nThis has this many digits :`, 10
`\nThis has this many digits :`, 10

> 3^200; `\nThis has this many digits :` ,length(%);

265613988875874769338781322035779626829233452653394...

`\nThis has this many digits :`, 96
`\nThis has this many digits :`, 96

> 3^2000; `\nThis has this many digits :` ,length(%);

174787125172265160965997461916466057052906248743518...
174787125172265160965997461916466057052906248743518...
174787125172265160965997461916466057052906248743518...
174787125172265160965997461916466057052906248743518...
174787125172265160965997461916466057052906248743518...
174787125172265160965997461916466057052906248743518...
174787125172265160965997461916466057052906248743518...
174787125172265160965997461916466057052906248743518...

`\nThis has this many digits :`, 955
`\nThis has this many digits :`, 955

> 3^20000; `\nThis has this many digits :` ,length(%);

266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...
266130342721741979197820171224641437142630329894036...

`\nThis has this many digits :`, 9543
`\nThis has this many digits :`, 9543


Lets try to roughly compute some common numbers we may encounter. Would you guess that there are more blades of grass on a football field, or printed characters in a library?


Little Question 2.1 : A movie theatre has 40 rows with 26 seat per row. How many people are there when the theatre is full?

> 40*26;

1040


Little Question 2.2 : How many characters are there on the page of a book?
(count the number of lines per page and the average number of characters per line)

> 52*80;

4160



Little Question 2.3 : How many characters are there in a 350 page book?

> 350*52*80;

1456000



Little Question 2.4 : How many books are there in the library? (42 bookcases, with 6 rows of book per shelf, with 32 books per shelf).

> 42*6*32;

8064


Little Question 2.5 : How many printed characters are there in a library?

> (350*52*80) *(42*6*32) ;

11741184000


Little Question 2.6 : If there are 19 blades of grass in a square inch of lawn, how many blades of grass are there on a football field 350 feet by 125 feet?

> 19 * (12 * 350) * (12 * 125);

119700000


Little Question 2.7 : If there are 400 grains of sand in a teaspoon of sand that would cover a square inch if spreadout, how many grains of sand are there on the top surface of a beach 200 feet wide, by 3 mile?

> 400 * (12*12) * 200 * 3* 5280;

182476800000

3. Integers


The integers,
Z , consist of three components : natural numbers, zero, and negatives of naturals.

> `\nSome Integers ` = {k $ k = -50..50};

`\nSome Integers ` = {-50, -49, -48, -47, -46, -45,...
`\nSome Integers ` = {-50, -49, -48, -47, -46, -45,...
`\nSome Integers ` = {-50, -49, -48, -47, -46, -45,...
`\nSome Integers ` = {-50, -49, -48, -47, -46, -45,...

> `\nPositive Natural Numbers ` = {k $ k = 1..50};
`\nZero ` = {k $ k = 1..50};
`\nNegative Natural Numbers ` = {k $ k = -50..-1};

`\nPositive Natural Numbers ` = {1, 2, 3, 4, 5, 6, ...
`\nPositive Natural Numbers ` = {1, 2, 3, 4, 5, 6, ...
`\nPositive Natural Numbers ` = {1, 2, 3, 4, 5, 6, ...

`\nZero ` = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,...
`\nZero ` = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,...
`\nZero ` = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,...

`\nNegative Natural Numbers ` = {-50, -49, -48, -47...
`\nNegative Natural Numbers ` = {-50, -49, -48, -47...
`\nNegative Natural Numbers ` = {-50, -49, -48, -47...



Some people like to think of a bank statement. Deposits are positive numbers, and checks or withdrawals are negative numbers. Two deposits add to a greater balance, while two withdrawals add to be equivalent to a greater withdrawal. This principle is seen when adding two numbers of the same sign.

> (123) + (456);

579

> (-123) + (-456);

-579



However adding numbers of opposite signs causes a net transaction that depends on which is larger. A deposit and withdrawal at the same time can result in a net deposit if the deposit is bigger, or a net withdrawal if the withdrawal is bigger. We compute the result by subtracting the two numbers and taking the sign of the larger.

> (123) + (-456);

-333

> (-123) + (456);

333




Note that negative numbers have this reversal property when it comes to greater than. 3 is less than 4, but -3 is greater than -4. Thats because its better to have $4 in the bank rather than $3, and its also better to be only $3 in debt rather than $4 in debt.

> 3 < 4 ; -3 > -4;

3 < 4

-4 < -3

4. Rational Numbers


Rational numbers are defined as the set of all fractions of integers where the denominator is non-zero.

> Q := { a/b };

Q := {a/b}

> `\nSome Rational Numbers ` = [ seq( seq( i/j, i = 1..j-1), j = 1..10)];

`\nSome Rational Numbers ` = [1/2, 1/3, 2/3, 1/4, 1...
`\nSome Rational Numbers ` = [1/2, 1/3, 2/3, 1/4, 1...


Converting from Rational to Repeating Decimal

ALL rational numbers can be expressed as numbers with repeating decimals. Some numbers (whose quotients are powers of 2 and 5) have terminating decimals ... or you can also think of them as numbers with repeating zero decimals.

> 1/64: % = evalf(%,70);

1/64 = .1562500000000000000000000000000000000000000...

> 1/625: % = evalf(%,70);

1/625 = .160000000000000000000000000000000000000000...

> 1/2500: % = evalf(%,70);

1/2500 = .40000000000000000000000000000000000000000...


Other rational numbers have infinitely repeating periods of digits. Can you state how many digits are in the repeating period of eac/

> 2/3: % = evalf(%,70);

2/3 = .66666666666666666666666666666666666666666666...

> 1/14: % = evalf(%,70);

1/14 = .7142857142857142857142857142857142857142857...

> 10/13: % = evalf(%,70);

10/13 = .769230769230769230769230769230769230769230...

> 5/39: % = evalf(%,70);

5/39 = .1282051282051282051282051282051282051282051...

> 8/19: % = evalf(%,70);

8/19 = .4210526315789473684210526315789473684210526...




Converting from Rational to Repeating Decimal


It is not obvious, but EVERY number with a repeating sequence of digits must be a rational number. That means it can be expressed as a fraction.

Example 1 : 4.5238095238095238095238095238095238095238095238095...

> secret := evalf( 95/21, 60);

secret := 4.523809523809523809523809523809523809523...


We notice that there is a period of six repeating digits. So if we "slide" the number over by a facor of 10^6, the periods will still be lined up. Then if we subtract the original from this one, all of the infinite part of the decimal will cancel - leaving only an integer part.

> A := round(secret*10^6 - secret);

A := 4523805


This integer is equal to (10^6 - 1) times the original number S. We can now solve for S, as the quotient of two integers.

> S*10^n - S = S*(10^n - 1);
a = S*(10^n - 1); solve(%,S);

S*10^n-S = S*(10^n-1)

a = S*(10^n-1)

a/(10^n-1)


Lets execute this idea ....to find the original fraction.

> A/(10^6 - 1);

95/21

> `Check : `,% = evalf( %, 40);

`Check :    `, 95/21 = 4.52380952380952380952380952...



Lets try another example.
Example 2 : .22727272727272727272727272727272727272727272727272...


This one has a period of only two digits. However its a little more tricky.

> secret := evalf( 19/22, 60);

secret := .8636363636363636363636363636363636363636...

> A := round(secret*10^4 - secret*10^2);

A := 8550

> S = A/(10^4 - 10^2);

S = 19/22

5. Real Numbers


Real numbers include both rational and irrational numbers. Irrational numbers can not be expressed as fractions. Here are some examples. You can try looking for repeating decimals if you wish, but don't waste too much time. ;->

> Pi: % = evalf(%,1000);

Pi = 3.14159265358979323846264338327950288419716939...
Pi = 3.14159265358979323846264338327950288419716939...
Pi = 3.14159265358979323846264338327950288419716939...
Pi = 3.14159265358979323846264338327950288419716939...
Pi = 3.14159265358979323846264338327950288419716939...
Pi = 3.14159265358979323846264338327950288419716939...
Pi = 3.14159265358979323846264338327950288419716939...
Pi = 3.14159265358979323846264338327950288419716939...

> sqrt(2): % = evalf(%,500);

sqrt(2) = 1.414213562373095048801688724209698078569...
sqrt(2) = 1.414213562373095048801688724209698078569...
sqrt(2) = 1.414213562373095048801688724209698078569...
sqrt(2) = 1.414213562373095048801688724209698078569...

> sqrt(Pi): % = evalf(%,500);

sqrt(Pi) = 1.77245385090551602729816748334114518279...
sqrt(Pi) = 1.77245385090551602729816748334114518279...
sqrt(Pi) = 1.77245385090551602729816748334114518279...
sqrt(Pi) = 1.77245385090551602729816748334114518279...

> exp(1): % = evalf(%,500);

exp(1) = 2.7182818284590452353602874713526624977572...
exp(1) = 2.7182818284590452353602874713526624977572...
exp(1) = 2.7182818284590452353602874713526624977572...
exp(1) = 2.7182818284590452353602874713526624977572...

> sqrt( 2 + sqrt( 1 + sqrt( 3))); % = evalf(%,500);

sqrt(2+sqrt(1+sqrt(3)))

sqrt(2+sqrt(1+sqrt(3))) = 1.91125394709365335037015...
sqrt(2+sqrt(1+sqrt(3))) = 1.91125394709365335037015...
sqrt(2+sqrt(1+sqrt(3))) = 1.91125394709365335037015...
sqrt(2+sqrt(1+sqrt(3))) = 1.91125394709365335037015...

> 2^(1/3); % = evalf(%,500);

2^(1/3)

2^(1/3) = 1.259921049894873164767210607278228350570...
2^(1/3) = 1.259921049894873164767210607278228350570...
2^(1/3) = 1.259921049894873164767210607278228350570...
2^(1/3) = 1.259921049894873164767210607278228350570...

> 1/(Pi + sqrt(5) + exp(1)); % = evalf(%,500);

1/(Pi+sqrt(5)+exp(1))

1/(Pi+sqrt(5)+exp(1)) = .12351866444166314462411831...
1/(Pi+sqrt(5)+exp(1)) = .12351866444166314462411831...
1/(Pi+sqrt(5)+exp(1)) = .12351866444166314462411831...
1/(Pi+sqrt(5)+exp(1)) = .12351866444166314462411831...


6. Properties of Numbers


There are a number of properties of real numbers which underly all that we do in math.

1. Identity Properties

For the operations of addition and multiplication there are special numbers which are identities - they don't change other numbers. The identity for addition is 0 and for multiplication is 1.

> a + 0; 0 + a; 0 + 12324;

a

a

12324

> a*1; 1*a;; 1* 12324;

a

a

12324


2. Inverse Properties

In regard to both addition and multiplication, each number has an inverse - a number that cancels out the original number and transforms it into the inverse. The additive inverse for a is -a, and the multiplicative inverse for a (non-zero) is 1/a.

> a + (-a); 3 + (-3); (324234/2306491) + (-324234/2306491);

0

0

0

> a*(1/a); 234 * (1/234); (345/671) * (671/345);

1

1

1


3. Associative Properties

> 3 + ( 4 + 5); (3 + 4) + 5;

12

12

> 50723423 + ( 1812388 + 99993211 );
( 50723423 + 1812388 ) + 99993211 ;

152529022

152529022

> 3 + ( 4 + 5); (3 + 4) + 5;

12

12

> 50723423 * ( 1812388 * 99993211 );
( 50723423 * 1812388 ) *99993211 ;

9192428200090638762164

9192428200090638762164


4. Commutative Properties

> a + b = b + a;

a+b = a+b

> 79234091912091147546 + 4856765464338;
4856765464338 + 79234091912091147546;

79234096768856611884

79234096768856611884

> a * b = b* a;

a*b = a*b

> 1299934 * 3692010; 3692010*1299934;

4799369327340

4799369327340



5. Distributive Property

This is the only property which involves both operations at the same time. All of the previous rules involved addition or multiplication but not both.

> a*(b+c) = a*b + a*c;

a*(b+c) = a*b+a*c

> 7105871 * ( 10344392 + 47183017439 );
( 7105871 * 10344392) + (7105871 * 47183017439 );

335349941227409801

335349941227409801

> (10000)*(333*x + 777777);

3330000*x+7777770000

>


2002 Waterloo Maple Inc all rights reserved.