Docsity

An assignment for mathematic, Schemes and Mind Maps of Mathematics

Partial preview of the text

Download An assignment for mathematic and more Schemes and Mind Maps Mathematics in PDF only on Docsity!

UNIT-11: MATH’S FOR COMPUTING

[Document subtitle]

HND- 42

GUSTO

University

Academic Year: 2022

Unit Number and Title: Unit 11: Math’s for Computing

Assignment Number: Assignment- 1

Student ID: PF

Student Name: Aung Myo Thaw

Part 1

a. Given

S = 6min

LB = 3 min

L = 5 min

Find: How many minutes will take to be at the start point

Reason: Use LCM because it asks to find minutes taken to be at the start point again

Solution:

Ans: LCM of minutes taken to be at the start point: 30mins

b. Given:

G = 40

B = 32

Find: If each team must have same number of girls and boys

Solution: 1

Reason: Use HCF, it asks to find the greatest number of teams in school activities

Ans: The greatest number of teams that can participate in school activities = 222 =

Solution: 2

Number of girls in each team =

40

8

Number of boys in each team =

32

8

Ans: Number of girls and boys in each team = 5 girls and 4 boys

c. Given:

NL1 = every 2 seconds

NL2 = every 6 seconds

Find: In 60 seconds, how many time will they blink at the same time

Reason: Use LCM, it asks to find the times they will blink at the same time

Solution:

NL1 = 2 = 1*

NL2 = 6 = 3*

60sec = 2 310 = 232*

LCM of sum = 2*3 = 6

Ans: Time they blink at the same time: 60/6 = 10 times

d. Given:

28 Skittle Bags

36 Hershey Bars

Find: How many Skittles will be in each bag? How many Hershey Bars will be in each

bag? The greatest number of bags she can make?

Reason: Use HCF, it asks how many Skittles will be in each bag

Solution:

Using Prime Factorization

HCF of 28 and 36 = 2*2 = 4

Ans: The greatest numbers of bag she can make: 4 bags

Ans: Skittles in each bag: 28/4 = 7

Ans: Hershey in each bag: 36/4 = 9

e. Given:

Train A = 45mins

Train B = 60mins

Find:

How many minutes will pass before the two meets?

How many loops will Train A make?

How many loops will Train B make?

Reason: Use LCM, it asks how many minutes will pass before they meet

Solution:

LCM of 45 and 60 = 22335 = 36*5 = 180 minutes

Ans: Those two meet at = 180 minutes

Ans: The numbers loop Train A make = 180/45 = 4 times

Ans: The numbers loop Train B make = 180/60 = 3 times

f. Given:

1 package of 21 binders

1 package of 30 pencils

Find: The greatest number of identical sets Kyaw Kyaw can make using all the supplies

300 =n/2[110+(n-1) (-5)]

300 =n/2[110-5n+5]

600 =n[115-5n]

600 =115n- 5 𝑛

2

2

2

(n-8) (n-15) =

(n-8) =0 or (n- 15 ) =

N = 8 or N = 15

If N = 8

8

=8/2[2(55)+(8- 1 )(-5)]

8

=4[110-35]

8

8

If N = 15

8

=15/2[2(55) + (15-1) (-5)]

8

=15/2[110-70]

8

8

8

b. Find: Write down the first three terms of the geometric sequence if 3

rd

term is 40 and

th

is - 320

Reason: Use Geometric sequence because it asks to find the first three terms of

the geometric sequence if 3

rd

term is 40 and 6

th

term is - 320

Solution:

If 3

rd

term is 40, 𝑎

𝑛

𝑛− 1

a𝑟

3 − 1

a𝑟

2

= 40 , let it be equation 1

If 6

th

term is - 320 , 𝑎

𝑛

𝑛− 1

a𝑟

6 − 1

a𝑟

5

= − 320 , let it be equation 2

Divided equation 2 by using equation 1

a𝑟

5

a𝑟

2

3

If r = - 2 , Insert it in Equation 1

a𝑟

2

4a= 40

A = 10

According to geometric progression

𝑛

𝑛− 1

2

2

Given:

2th term = 160

th

term = 250

Find: Write down the first three terms of the geometric sequence if 2

nd

term is 160

and 4

th

is 250

Reason: Use Geometric sequence because it asks to find the first three terms of the

geometric sequence if 2

nd

term is 40 and 4

th

term is 250

Solution:

If 2

nd

term is 160

𝑛

𝑛− 1

a𝑟 = 160 , let it be Equation 1

If 4

th

term is 250

𝑛

𝑛− 1

a𝑟

3

= 250 , let it be Equation 2

Divided equation 2 by using equation 1

3

R = 5/

R = 1.

If r = 1.25, insert it in Equation 1

ar = 160

1.25a = 160

A = 128

According to geometric progression

3

𝑛− 1

3

2

3

2

3

8

=24 + 28d

5

=5/2[2(3) + (5-1) d]

5

=5/2[6+4d]

5

= 5[3+2d]

5

= 15 + 10d

8 = 2

5

8d = 6

D = ¾

e. Given

Sum of the first 20

th

term = Sum of the first 22

nd

term

20

22

D = - 2

Find: First term, A

Solution:

𝑛

=n/2[2a+(n-1)d]

20

= 20 / 2 [ 2 𝑎 + ( 20 − 1 )(− 2 )]

20

20

𝑛

=n/2[2a+(n-1) d]

22

= 22 / 2 [ 2 𝑎 + ( 22 − 1 )(− 2 )]

22

= 11[2a-42]

22

= 22a- 462

20

22

2a = 82

A = 41

Ans: The 1

st

term, A is 41.

f. Given:

th

term = 24

th

term = 768

Find: The first six terms of the sequence

Reason: Use Geometric sequence because it already given

Solution:

4

3

3

, let it be equation 1

9

8

8

, let it be equation 2

Divided equation 2 by using equation 1

𝑎𝑟

8

𝑎𝑟

3

768

24

5

5

5

If r = 2, insert it in equation 1

3

3

24 = 8a

A = 3

If a = 3

2

2 − 1

2

2

3

3 − 1

3

2

3

5

5 − 1

5

4

5

4

5

6

6 − 1

6

5

6

5

6

Ans: The first five term is = 3,6,12,24,48,

g. Given:

nd

term = - 1

th

term =

− 1

16

Find: 1

st

term, A and Common Ratio, R

Solution:

15

15

Ans: The 4

th

term is 480, the 7

th

term is 30720, the 15

th

Part 3

a. Given:

Cars = 60

Vans = 30

Lorries = 10

Find: The probability of van leaving first, lorry leaving first and car leaving second

if either a lorry or van had left first

Solution:

Let S be the total space, N(S) = 100

Let A be the event of a van leaving first, N(A) = 30

Probability of a van leaving first: P(A) = N(A)/N(S) = 3/10 = 0.

Solution:

Let S be the total space, N(S) = 100

Let B be the event of a lorry leaving first, N(B) = 100- 60 - 30 = 10

Probability of a lorry leaving first: P(B) = 10/100 = 0.

Solution:

If either a lorry or van had left first

Then there would be 99 vehicles remain, 100-1 = 99

60 of them are cars.

Let T be the sample space, N(T) = 99

Let C be the event of a car leaving second, N(C)= 60

Probability of a car leaving after a lorry or van has left: P(B) = N(C)/N(T) = 60/

b. Given:

Brown = 0.

Red = 0.

Yellow = 0.

Green = 0.

Orange = 0.

Find: What value must the missing probability be?

Solution: a

Let S be the current total amount of sweets: 0.

The probabilities must sum to 1.

Let probabilities be P.

Therefore, the answer is 1 – 0.9 = 0.

Solution: b(I)

Let total numbers of getting brown one or red one be S

P(S) = 0.

Solution: b(II)

Let total amount of sweet be Y.

Let it be A when not getting a yellow sweet

P(A) = Y-N(A) = 1-(0.3+0.2) = 1-0.2 = 0.

Solution: b(III)

Let it be B when not getting either an orange or tan one

P(B) = Y – N(B) = 1 – (0.1+0.1) = 0.

Solution: b(IV)

Let it be X if getting all of the color.

P(X) = N(X)/Y = 1/1 = 1

c. Given:

Total numbers of card in two packs: 104

Let it be S.

Let Probability be P.

Find: (a) if both cards are diamonds

Solution:

Let it be A if both cards are diamonds, A = 26

P(A) = N(A)/Num(S) = 26/104 = ¼ = 0.

Find: (b) if both cards are black

Solution:

Let it be B if both cards are blacks, B = 26

P(B) = N(B)/N(S) (in one pack) * N(B) /N(S) (in one pack) = 26/52 * 26/52 = ½

Find: (c) if both cards are kings

Solution:

Let it be K if both cards are kings, K = 8

P(K) = N(K)/N(S) (in one pack) * N(K)/N(S) (in one pack) = 4/52 * 4/52 = 1/

d. Given:

Red = 10

White = 5

P(A) = N(A)/N(S) = 0.0625/1 = 0.

Ans: The probability of both scores’ is’6’s = 0.

Find: (b) Both scores are ‘1’s

Solution:

Let it be B if both scores are’1’s: N(B) = 0.1*0.1 = 0.

P(B) = N(B)/N(S) = 0.01/1 = 0.

Ans: The probability of both scores is ‘1’s = 0.

Find: (c) First score is odd and second score is even

Solution:

Let it be C if first score is odd and second score is even: N(C) = (P1P2) + (P1P4)

+ (P1P6) + (P3P2) +(P3P4) +(P3P6) +(P5P2) +(P5P4) +(P5*P6) = 0.

P(C) = N(C)/N(S) = 0.24/1 = 0.

Ans: The Probability of first score odd and second score even is 0.

Find: (d) Total score is 10

Solution:

Let it be D if total score is 10, N(D) = (P5P5) +(P6P4) +(P4*P6) = 0.04 + 0.

P(D) = N(D)/N(S) = 0.14/1 = 0.

Ans: The Probability of total score ‘10’ is 0.

Part 4

Moreover, identify multiplicative inverses in modular arithmetic and produce a report for

both binomially distributed and normally distributed random variables with your

examples.

What is Multiplicative inverse

The multiplicative inverse of a number, say, N, is represented by 1/N or N

- 1 . It is also

called reciprocal , derived from the Latin word ‘ reciprocus ‘. The meaning of inverse is

something which is opposite. The reciprocal of a number obtained is such that when it

is multiplied by the original number, the value equals identity 1. In other words, it is

a method of dividing a number by its own to generate identity 1, such as N/N = 1.

Consider the examples; the multiplicative inverse of 3 is 1/3, of - 1/3 is - 3, of 8 is 1/8 and 4/

is - 7/4. But the multiplicative inverse of 0 is infinite because 1/0 = infinity. So, there is no

reciprocal for a number ‘0’. Whereas the multiplication inverse of 1 is 1 only.

Definition of multiplicative inverse of number for any n is simply 1/n. It is denoted as:

1/x or 𝑥

− 1

(inverse of x)

It is also called as the reciprocal of a number and 1 is called the multiplicative identity.

Finding the multiplicative inverse of natural numbers is easy, but it is difficult for

complex and real numbers. For example, the multiplicative inverse of 3 is 1/3, of 47

is 1/47, 13 is 1/13, 8 is 1/8, etc., whereas the reciprocal of 0 will give an infinite value

or 1/0 = ∞. Such as:

What is modular inverse used for

Modular multiplicative inverses are used to obtain a solution of a system of linear

congruences that is guaranteed by the Chinese Remainder Theorem.

How to find modular exponentiation

Modular exponentiation can be performed with a negative exponent e by finding the

modular multiplicative inverse d of b modulo m using the extended Euclidean

algorithm. That is: c = b

e

mod m = d

−e

mod m, where e < 0 and b ⋅ d ≡ 1 (mod m).

Modular exponentiation is efficient to compute, even for very large integers.

What is multiplicative inverse in modular arithmetic

The modular inverse of a number refers to the modular multiplicative inverse. For any

integer a such that (a, p) = 1 there exists another integer b such that ab≡ 1 (mod p).

The integer b is called the multiplicative inverse of a which is denoted as b = a

− 1

Modular Multiplicative inverse

Given two numbers ‘a’ and ’m,’ compute the modular multiplicative inverse of ‘a’ under

the modulo of ’m’ by multiplying them together. The modular multiplicative inverse is

a positive integer ‘x’ that has the property that. an x = 1 an x = 1 an x = 1 an x = 1 an x

= 1 an x = 1 (mod m) The value of x should be in the range of integer modulo m, i.e.,

inside the integer modulo m range. (It should be noted that x cannot be zero since

a*0 mod m would never be 1). The multiplicative inverse of “a modulo m” occurs if

and only if a and m are relatively prime (i.e., if gcd (a, m) = 1).

Examples: a = 3, m = 11 are the input values. (under 11)

Input values: a = 10, m – 17,12 as a final result Because (10*12) mod 17 = , 12 is

the modulo inverse of the number 10.

The normal distribution has several key features and properties that define it. First,

it’s mean (average), median (midpoint), and mode (most frequent observation) are

all equal to one another. Moreover, these values all represent the peak, or highest

point, of the distribution. The distribution then falls symmetrically around the mean,

the width of which is defined by the standard deviation.

A fair rolling of dice is also a good example of normal distribution. In an experiment,

it has been found that when a dice is rolled 100 times, chances to get ‘1’ are 15-18%

and if we roll the dice 1000 times, the chances to get ‘1’ is, again, the same, which

averages to 16.7% (1/6). If we roll two dices simultaneously, there are 36 possible

combinations. The probability of rolling ‘1’ (with six possible combinations) again

averages to around 16.7%, i.e., (6/36). More the number of dices more elaborate will

be the normal distribution graph.

Height

Height of the population is the example of normal distribution. Most of the people in a

specific population are of average height. The number of people taller and shorter than

the average height people is almost equal, and a very small number of people are

either extremely tall or extremely short. However, height is not a single characteristic,

several genetic and environmental factors influence height. Therefore, it follows the

normal distribution.

Furthermore, produce a detailed written explanation of the importance of prime

numbers within the field of computing and Evaluate probability theory to an example

involving hashing and load balancing.

What is prime numbers

Prime numbers are natural numbers that are divisible by only 1 and the number itself. In

other words, prime numbers are positive integers greater than 1 with exactly two factors, 1

and the number itself. Some of the prime numbers include 2, 3, 5, 7, 11, 13, etc. 1 is neither

prime nor composite. Also, we can say that except for 1, the remaining numbers are classified

as prime and composite numbers. All prime numbers are odd numbers except 2, 2 is the

smallest prime number and is the only even prime number. Prime numbers are the natural

numbers greater than 1 with exactly two factors. A prime number is a positive integer

having exactly two factors, i.e. 1 and the number itself. If p is a prime, then its only factors

are necessarily 1 and p itself. Any number that does not follow this is termed a composite

number, which can be factored into other positive integers. Another way of defining it is a

positive number or integer, which is not a product of any other two positive integers other

than 1 and the number itself.

Properties of Prime Numbers

  • Every number greater than 1 can be divided by at least one prime number.
  • Every even positive integer greater than 2 can be expressed as the sum of two primes.
  • Except 2, all other prime numbers are odd. In other words, we can say that 2 is the

only even prime number.

  • Two prime numbers are always coprime to each other.
  • Each composite number can be factored into prime factors and individually all of these

are unique in nature.

The important of prime numbers