0% found this document useful (0 votes)
64 views13 pages

Solutions

The document contains solutions to various mathematical problems involving number base conversions, binary representations, and weighted binary codes. It includes detailed calculations for converting decimal numbers to different bases, as well as operations in those bases. Additionally, it discusses the concept of self-complementing codes and provides examples for verification.

Uploaded by

family7482please
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views13 pages

Solutions

The document contains solutions to various mathematical problems involving number base conversions, binary representations, and weighted binary codes. It includes detailed calculations for converting decimal numbers to different bases, as well as operations in those bases. Additionally, it discusses the concept of self-complementing codes and provides examples for verification.

Uploaded by

family7482please
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Question-1:

Solution:

Part-a:

14318 Base 10

= (1 × 83 ¿ + (4× 82 ¿+ ( 3× 81 ) +(1× 80 )

= 793

Part-b:

11001010.01012 Base 10

=(1 ×27 ¿+ (1 ×26 ¿+(0 ×25 )+( 0× 24 )+ (1 ×23 ¿+ (0 ×22 ¿+(1× 21)+(0 ×20 )+ (0 ×2−1 ¿
+ (1 ×2−2 ¿+(0 ×2−3)+(1× 2−4 )

= 202 + 0.3125

= 202.3125

Part-c:

11001101.01012 Base 8 and 4

Divide the bits into group of three

011 001 101 010 100

3 1 5 . 2 4

= 315.24

For base 4

Divide the bits into group of two


= 11 00 11 01 01 01

3 0 3 1 1 1

= 3031.11

Part-d:

1984 10 Base 8

Divide with base 8 to get the binary digits from the remainder

1984
= 0
8

248
= 0
8

31
= 7
8

3
= 3
8

= 3700

Part-e:

177610 Base 6

Divide with base 6 to get the binary digits from the remainder

1776
= 0
6

296
= 2
6

49
= 1
6
8
= 2
6

1
= 1
6

= 12120

Part-f:

53.157510 Base 2

First divide the 53 with 2 and get the binary bits from the remainder

53
= 1
2

26
= 0
2

13
= 1
2

6
= 0
2

3
= 1
2

1
= 1
2

= 110101

Next divide the 1575 with 2 and get the binary digits from the remainder

= 00101000010100011111

Now combine the bits

= 110101. 00101000010100011111
Part-g:

3.14159 Base 3

Here to convert into base 3 each base digit of base 9 equal to 2 base 3
digits.

Like 1 = 01

2 = 02

3 = 10

4 = 11

5 = 12

For base 3 for number 3 in base 9 is 10

For base 3 for number 1415 in base 9 is 1110112

= 10.1110112

Question-2:

Solution:

Part-a

Given 1610=100 b

Calculation of b:
= (1 × b2 ¿ + (0× b1 ¿+ ( 0 ×b 0 )

= b2

Now equal to given question

2
b = 16

b = 16

The value of b is 16

Part-b

Given 29210=1204 b

Calculation of b:

= (1 × b3 ¿+ (2× b2 ¿+ ( 0 ×b 1 ) +( 4 ×b 0 )

= b 3+2b 2 + 4

Now equal to given question

3 2
b +2b + 4 = 292

3 2
b +2b -288 = 0

Largest digit is 4 so the number system valid any base ≥ 5

Put 6 in the above equation

3 2
6 +2×6 -288 = 0

So the base is 6

Note:
If 6 is not worked then go to other number like 7, 8, ….

Question-3:

Solution:

Given decimal number 8620

Part –a

BCD

Split the each number into group of binary bits

8 6 2 0

1000 0110 0010 0000

Part-b

Excess 3 code

Add each number with 3 and give the bits in the group of 4 bits

8+3 = 11 6+3 = 9 2+3 = 5 0+3 = 3

1011 1001 0101 0110

Part-c

2421 code

This code has been weighted for the given number


8 6 2 0

1110 1100 0010 0000

Part-d

Binary number

= 8620 is the decimal number

Divide the number by 2 and get the digits from the remainder

= 10000110101100

8620
= 0
2

4310
= 0
2

2155
= 1
2

1077
= 1
2

Upto 0 we need to divide every number by 2 and get digits from the remainder

Question-4:

Solution:

Part-a:

1234 + 5432 = 6666

Here largest digit is 6 so the operation is possible for any number system with base ≥ 7
Part-b:

41/3 = 13

Let take base is b

4 × b+1
=1 ×b+ 3
3

4b+1 = 3 (b+3)

4b = 3b +9-1

4b -3b = 8

Base b = 8

Part-c:

33/3 = 11

Let take base is b

3× b+3
=1 × b+1
3

3b+3 = 3 (b+1)

3b = 3b +3-3

3b-3b = 0

Here largest digit is 3 so the operation is possible for any number system with base
≥4

Part-d:

23 + 44 + 14 + 32 = 223

Let take base is b


(2× b+3 ¿+ ( 4 ×b+ 4 )+ ( 1× b+ 4 ) + ( 3 ×b +2 )=2 b2 +2 b+3

2b + 4b + b + 3b +13 = 2 b2 +2 b+3

0= 2 b2−¿8b – 10

b = 5 don’t consider negative

b =5

Part-e:

302/20 = 12.1

Let take base is b

2
3× b +2 1
=b+ 2+
2b b

2 2
3 b +2 = 2b + 4 b+ 2

2
b – 4b = 0

Base is 4

Part-f:

√ 41 = 5

Let take base is b

√ 4 b+1 = 5

4b+1 = 25

4b = 24

Base is 6

Question-5:
Solution

Part-a:

6,3,1,-1

Weighted binary code

Decimal digit 6 3 1 -1
0 0 0 1 1
1 0 0 1 0
2 0 1 0 1
3 0 1 0 0
4 0 1 1 0
5 1 0 0 1
6 1 0 0 0
7 1 0 1 0
8 1 1 0 1
9 1 1 0 0

Part-b:

7, 3, 2, -1

Weighted binary code

Decimal digit 7 3 2 -1
0 0 0 0 0
1 0 0 1 1
2 0 0 1 0
3 0 1 0 0
4 0 1 1 1
5 0 1 1 0
6 1 0 0 1
7 1 0 0 0
8 1 0 1 1
9 1 0 1 0

Part-c:

5, 4, -2, -1

Weighted binary code

Decimal digit 5 4 -2 -1
0 0 0 0 0
1 0 1 1 1
2 0 1 1 0
3 0 1 0 1
4 0 1 0 0
5 1 0 0 0
6 1 1 1 1
7 1 1 1 0
8 1 1 0 1
9 1 1 0 0

Part-d:

8, 7, -4, -2
Weighted binary code

Decimal digit 8 7 -4 -2
0 0 0 0 0
1 0 1 1 1
2 1 0 1 1
3 0 1 1 0
4 1 0 1 0
5 0 1 0 1
6 1 0 0 1
7 0 1 0 0
8 1 0 0 0
9 1 1 1 1

Part-b:

Self-complementing or not

6+3+1-1 = 9

So it is self-complementing

7+3+2-1 = 11

It is not equal to 9 so not self-complementing

5+4-2-1 = 6

It is not self-complementing

8+7-4-2 = 9

It is self-complementing

You might also like