You are on page 1of 30

www.gradeup.

co

1
www.gradeup.co

संख्या पद्धति

कंप्यूटर स्वेच्छ हैं वे मानव भाषा नह ं समझ सकते हैं । कंप्यूटर के साथ संचार करने के लिए संख्याओं का उपयोग
लकया जाता है । संख्याओं का लवलभन्न तर कों से प्रलतलनलित्व करना संख्या पद्धलत कहिाता है । इस िे खन पद्धलत में,
हम संख्याओं का प्रलतलनलित्व करने के लिए लवलभन्न प्रत कों और संकेतों का प्रयोग करते हैं । उदाहरण के लिए, एक
कंप्यूटर में 0 का अथथ बंद होता है और 1 का अथथ चािू होता है । चार प्रकार क संख्या पद्धलत मौजूद हैं , और वे हैं :

• लिआिार (Binary)
• दशमिव (Decimal)
• अष्ट-आिार (Octal)
• षोडश-आिार (Hexadecimal)

I. तिआधारी (Binary) संख्या पद्धति:

लिआिार संख्या पद्धलत में हम केवि दो प्रत कों का उपयोग करके संख्याओं का प्रलतलनलित्व करते हैं अथाथ त 0
या 1, जैसा लक पहिे उल्लेख लकया गया है , 0 ऑफ हो सकता है और 1 ऑन हो सकता है ।

आिार मान उन तर कों क संख्या को इं लगत करता है , लजनमें हम उस संख्या पद्धलत में संख्याओं का
प्रलतलनलित्व कर सकते हैं । प्रत्येक संख्या पद्धलत का अिग-अिग आिार मान होता है । लिआिार संख्याओं का
आिार मान 2 होता है क्ोंलक इसमें केवि दो प्रत क होते हैं । दो संभावनाओं वािे पररणाम लिआिार संख्या
पद्धलत का उपयोग करते हैं । उदाहरण के रूप में हम लबजि के बल्ब का उपयोग कर सकते हैं लजसे चािू या
बंद लकया जा सकता है ।

सभ नव नतम कंप्यूटर और कंप्यूटर-आिाररत उपकरणों में आं तररक रूप से लिआिार पद्धलत िागू होत है ।
यह िॉलजक गेट्स का उपयोग करके लवद् युत पररपथ में इसके प्रत्यक्ष कायाथ न्वयन के कारण है । लबट हर उस
अंक को संदलभथत करता है जो उत्पालदत होता है ।

तिआधारी पद्धति का प्रयोग करके अंकगतििीय संतियाएं :

योग: दो संख्याओं को जोड़ने पर केवि एक लिआिार संख्या प्राप्त होग l

0+0=0

0+1=1

1+0=1 2. 111.0111 और 10011.001

1 + 1 = 0, 1 के हालसि (कैर ओवर) के साथ


111.0111 और 10011.001
उदाहरण के लिए:
111 11 हालसि
1. 10101 और 11011
1111 हालसि 111.0111
10101
11011 10011.001
110000
11010.1001
2
www.gradeup.co

घटाना: घटाने के लनयम होंगे

0-0=0

1-0=1

1-1=0

0 - 1 = 1, 1 के उिार (borrow) के साथ

उदाहरण:

1. 1001 में से 101


2. 1111011.11 में से 1010101.10

1 उिार 1 उधार

1001 1111011.11

101 1010101.10

100 100110.01

गुिन: लिआिार संख्याओं का गुणन एक बार में गुण्य को गुणक के एक लबट से गुणा करके लकया जाता है । साथ
ह , प्रत्येक लबट के लिए आं लशक गुणनफि का पररणाम संबंलित गु णक लबट के अंतगथत रखा जाता है । अंत में पूणथ
गुणनफि प्राप्त करने के लिए आं लशक गुणनफिों को जोड़ा जाता है । उदाहरण के लिए:

10111 को 1101 से

10111

1101

10111 ← पहिा आं लशक गुणनफि

10111

1110011 ← पहिा माध्यलमक योग

10111

100101011 ← अंलतम योग

तिभाजन: लिआिार संख्याओं में, संलिया सरि होत है । भाजक के आिार पर भागफि 1 या 0 हो सकता है ।
उदाहरण के लिए:

3
www.gradeup.co

11001 ÷ 101

101) 11001 (101


101
101
101

इसतिए, भागफि 101 है l

II. दशमिि संख्या पद्धति:

दशमिव संख्या प्रणाि में 10 अंक होते हैं - 0 से 9 तकl ये आिार मान 10 के साथ

संख्याओं का प्रलतलनलित्व करते हैं । दशमिव संख्या पद्धलत का उपयोग तब लकया जाता है जब लकस पद्धलत के
10 संभालवत आउटपुट होते हैं । यह कंप्यूटर अनुप्रयोगों में व्यापक रूप से उपयोग लकया जाता है ।

दशमिव पद्धलत में प्रत्येक अंक क एक स्थथलत होत है और प्रत्येक अंक लपछिे अंक क तुिना में दस गुना
अलिक महत्वपूणथ होता है । उदाहरण के लिए: 25 एक दशमिव संख्या है , और तब 2, 5 से दस गुना अलिक हैं ।
उदाहरण:

(92)10 = 9×101+2×100

(200)10 = 2×102+0x101+0x100

दशमिव संख्या, लजसमें दशमिव (.) के दाईं ओर अंक मौजूद होते हैं , प्रत्येक अंक को 10 क घटत घातों के साथ
दशाथ त है । उदाहरण:

(30.2)10= 30×101+0x100+2×10-1

(212.367)10 = 2×102+1×101+2×100+3×10-1+6×10-2+7×10-3

अंकगलणत य संलियाएं लिआिार संख्या पद्धलत क तरह ह क जात है l

III. अष्ट-आधारी संख्या पद्धति:

अष्ट-आिार संख्या पद्धलत का प्रत क आठ के आिार के साथ संख्याओं का प्रलतलनलित्व करता है । यह 0 से 7 तक


क संख्या का उपयोग करता है । कंप्यूटर अनुप्रयोग में अष्ट-आिार संख्या पद्धलत का उपयोग लकया जाता है । इसके
अिावा इसका उपयोग लवमानन क्षेत्र में संख्या को कोड के रूप में उपयोग करने के लिए भ लकया जाता है । लवमान
में ट् ां सपोंडर एक कोड संचाररत करता है लजसे चार अष्टािार अंकों के रूप में व्यक्त लकया जाता है । ये कोड जम न
रडार िारा जां च लकए जाते हैं ।

लवलभन्न प्रोग्रालमंग भाषाओं में कोलडं ग करने या एस्रिप्टेड भाषा लिखने के लिए अष्ट-आिार का उपयोग लकया जाता
है , लजसे केवि कंप्यूलटं ग मश न िारा समझा जाता है ।

जब हम एक अष्ट-आिार संख्या को हि करते हैं , तो प्रत्येक थथान आठ क घात होत है ।

• 1248= 1 × 82 + 2 × 81 + 4 × 80
योग: यह लिआिार और दशमिव संख्या पद्धलत क तरह होता है l

4
www.gradeup.co

(i) (162)8 + (537) 8

11 <---- हालसि

162

537
721

इसतिए, योग = 7218

घटाना: यह लवलि दशमिव संख्याओं के लनयमों का पािन करत है ।

गुिन: यलद दो संख्याओं का योग 7 से अलिक है , तो आपको इसके समतुल्य अष्टािार मूल्य ज्ञात करने क
आवश्यकता होत है । संख्या को 8 से लवभालजत क लजए और इसका समतुल्य अष्टािार मान ज्ञात क लजए। भागफि
को हालसि के रूप में लिया जाएगा और शेषफि योग होगा।

उदाहरि के तिए: 5)8*6)8=30)10

← भागफल हासिल के रूप में


3

5 *6 8⟌30
36)8 24
6 ← शेषफल योग के रूप
में
X 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 1 2 3 4 5 6 7

2 0 2 4 6 10 12 14 16

3 0 3 6 11 14 17 22 25

4 0 4 10 14 20 24 30 34

5 0 5 12 17 24 31 36 43

6 0 6 14 22 30 36 44 52

7 0 7 16 25 34 43 52 61

5
www.gradeup.co

तिभाजन: लवभाजन के सामान्य लसद्धां त समान रहते हैं । और हम अष्ट-आिार संख्याओं क सारण का उपयोग
करते हैं । उदाहरण के लिए:

53.27
7 ⟌457.43
43
27
25
24
16
63
61
2

IV. हेक्साडे तसमि-आधारी संख्या पद्धति:

हे क्साडे लसमि-आिार अंक पद्धलत 16 प्रत कों से बन है । मानक संख्या पद्धलत को दशमिव (आिार 10) कहा
जाता है और दस प्रत कों का उपयोग करता है । यह दशमिव संख्या के साथ 6 अलतररक्त प्रत कों का उपयोग
करत है । 6 प्रत कों को अंग्रेज वणथमािा से प्राप्त लकया जाता है , जो लक A, B, C, D, E और F हैं l अक्षर 10 से
संख्याओं का प्रलतलनलित्व करते हैं । A = 10, B = 11, C = 12, D = 13, E = 14, F = 15

योग: इसमें एक सारण शालमि होत है l

उदाहरण के लिए:
पररकिन कीतजए: (B A 3)16 + (5 D E)16

सारण से,

3 + E = 11 1 1 हालसि

6
www.gradeup.co

A + D = 17
BA3
17 + 1 (हालसि) = 18
5DE
B + 5 = 10
1181
10 + 1 (हालसि) = 11

इसतिए, हे क्साडे तसमि -आधारी में अभीष्ट योग 1181 हैl

घटाना:

यह घटाव पूरक पद्धलत का उपयोग करता है । यह भ दशमिव के समान है । एकमात्र लभन्नता 1610 के समूह से
उिार ि गई संख्या में है । कंप्यूटर हमारे लिए यह बहुत कुशिता से करते हैं । उदाहरण के लिए:

गुिन: गुणन भ एक सारण का उपयोग करता है l

7
www.gradeup.co

(B84F)16 और (A53)16 क गुणन ज्ञात क लजएl

Solution:
7 5 3 9
3 2 1 4
2 1 2
B 8 4 F
× A 5 3

2 2 8 E D
3 9 9 8 B 0
7 3 3 1 6 0 0

7 6 E D 7 9 D

तिभाजन: सारण बनाई जात है और उपयोग क जात है l

उदाहरि:

AE887)16÷3A)16

8
www.gradeup.co

पहिे 3A और इसके गुणकों के लिए गुणन सारण बनाइए

3A*1 3A
3025.A3
3A*2 74
3A⟌AE887
AE 3A*3 AE

X88 3A*4 E8

74 3A*5 122

147 3A*6 15C


122 3A*7 196
250 3A*8 1D0
244
3A*9 20A
B0
3A*A 244
AE
3A*B 27E
2
Answer:3025.A3)16
संख्या पद्धति रूपांिरि सारिी
• तिआधारी से दशमिि
n अंकों वाि लिआिार संख्या के लिए
dn-1 ... d3 d2 d1 d0
दशमिव संख्या, लिआिार अंकों क उनक 2 क घातों (2n) से गुणा के योग बराबर होत है :
दशमिव = d0×20 + d1×21 + d2×22 + ...

9
www.gradeup.co

• तिआधारी से अष्ट-आधारी

• तिआधारी से षोडश-आधारी:

10
www.gradeup.co

• दशमिि से तिआधारी:

• दशमिि से अष्ट-आधारी

• दशमिि से हे क्साडे तसमि-आधारी:

11
www.gradeup.co

• अष्ट-आधारी से तिआधारी:

• अष्ट-आधारी से दशमिि:

12
www.gradeup.co

• अष्ट-आधारी से षोडश-आधारी

• षोडश-आधारी से तिआधारी:

13
www.gradeup.co

• षोडश-आधारी से दशमिि:

घािों का योग तितध:

सबसे कम महत्वपूणथ से सबसे अलिक महत्वपूणथ अंक में पररवलतथत करता है

310716 = (7X160) + (0X161) + (1X162) + (3X163)

= 7 + 0 + 256 + 12288

= 1255110

गुिन और योग तितध:

सबसे अलिक महत्वपूणथ से सबसे कम महत्वपूणथ अंक में पररवलतथ त करता है

310716

(3X16) + 1 = 48 + 1 = 49

(49X16) + 0 = 784 + 0 = 784

(784X16) + 7 = 12544 + 7 = 1255110

14
www.gradeup.co

Number Systems
Computers are arbitrary they cannot understand human language.
Numbers are used to communicate with computers. Representing
the numbers in different ways is called Number System. In this
writing system, we use different symbols and notations to represent
numbers. For example, in a computer 0 is OFF and 1 is ON. Four
types of Number Systems are present, and they are:

• Binary,
• Decimal,
• Octal and
• Hexadecimal.

V. Binary Number System:

In Binary Number System we represent the numbers by using only two


symbols i.e. 0 or 1.As mentioned before, 0 can be OFF and 1
can be ON.

Base value indicates the number of ways we can represent the


numbers in that number system. Each number system has
different base value. The base value of binary numbers is 2
because there are only two symbols. Outcomes with two
possibilities use Binary number system. Like as example we can
use the electric bulb that can be switched on or off.

15
www.gradeup.co

All latest computers and computer-based devices have binary


system applied internally. It is because of its direct
implementation in electronic circuits using logic gates. Bit refers
to every digit that is produced.

Arithmetic Operations using Binary systems:

Addition: Adding two numbers will give a binary number only.

0+0=0

0+1=1

1+0=1

1 + 1 = 0 with a carry-over of 1

For example: 2. 111.0111 and 10011.001


2. 10101 and 11011
111.0111 and 10011.001
1111 Carry overs
111 11 Carry overs
10101
111.0111
11011
10011.001
110000
11010.1001
Subtraction: The rules for subtraction will be

0-0=0

1-0=1

1-1=0

0 - 1 = 1 with a borrow of 1
16
www.gradeup.co

Examples:

1. 101 from 1001 2. 1010101.10 from 1111011.11

1 Borrow
1 Borrow
1111011.11
1001
1010101.10
101
100110.01
100

Multiplication: The multiplication of binary numbers is carried out by multiplying


the multiplicand by one bit of the multiplier at a time. Also, the result of the
partial product for each bit is placed under the corresponding multiplier bit.
Finally the partial products are added to get the complete product. For example:
10111 by 1101

1 0 1 1 1

1 1 0 1

1 0 1 1 1 ← First
partial product
1 0 1 1 1

1 1 1 0 0 1 1 ← First
intermediate sum

1 0 1 1 1

1 0 0 1 0 1 0 1 1 ← Final sum.
17
www.gradeup.co

Division: In Binary numbers, the operation is simple. The quotient


can have either 1 or 0 depending upon the divisor. For example:
11001 ÷ 101
101) 11001 (101
101
101
101

Hence the quotient is 101

VI. Decimal Number System:

Decimal number system has 10 digits – 0 to 9. These represent


the numbers with a base value of 10. Decimal number system is
used when there are 10 possible outputs of a system. It is widely
used in computer applications.

In the decimal system each digit has a position and every digit is
ten times more significant than the previous digit. For example: 25
is a decimal number, and then 2 are ten times more than
5. Examples:

(92)10 = 9×101+2×100
(200)10 = 2×102+0x101+0x100
The decimal numbers which have digits present on the right side of the decimal (.)
shows each digit with decreasing power of 10. Examples:
(30.2)10= 30×101+0x100+2×10-1
(212.367)10 = 2×102+1×101+2×100+3×10-1+6×10-2+7×10-3

18
www.gradeup.co

The Arithmetic Operations are conducted just like in Binary Number

System.

VII. Octal Number Systems:

Octal Number System’s symbol represents numbers with a base of


eight. It uses the number from 0 to 7. The octal Number system
is used in computer application. Apart from this it is also used in
the aviation sector to use the number in the form of code.
Transponder in the aircraft transmits a code which is expressed as
four octal digit numbers. These codes are interrogated by ground
radar.

Various programming languages use octal numbers to do coding


or to write the encrypted language, which is only understood by
the computing machine.

When we solve an octal number, each place is a power of eight.

• 1248= 1 × 82 + 2 × 81 + 4 × 80
Addition: It takes place like in Binary and Decimal Number
Systems.

(i) (162)8 + (537) 8

11 <---- carry
162
537
721
Therefore, sum = 7218

19
www.gradeup.co

Subtraction: This method follows the rules of decimal numbers.

Multiplication: If the sum of two numbers exceeds 7 you need to


evaluate the octal value equivalent to it. Divide the number by 8
and find its equivalent octal value. The remainder will be taken as
carry and the Remainder will be the sum.

For example 5)8*6)8=30)10

← quotient as carry
3
8⟌30
5 *6 24
36)8 6 ← remainder as sum

X 0 1 2 3 4 5 6 7

0 0 0 0 0 0 0 0 0

1 0 1 2 3 4 5 6 7

2 0 2 4 6 10 12 14 16

3 0 3 6 11 14 17 22 25

4 0 4 10 14 20 24 30 34

5 0 5 12 17 24 31 36 43

6 0 6 14 22 30 36 44 52

7 0 7 16 25 34 43 52 61
Division: The usual
principles of division remain the same. And we use the table of
octal numbers. For example:

53.27

7 ⟌457.43
43
27

20
www.gradeup.co

25
24
16
63
61
2

VIII. Hexadecimal Number System:

The hexadecimal numeral system is made up of 16 symbols. The


standard numeral system is called decimal (base 10) and uses ten
symbols. This uses 6 extra symbols with the decimal numbers.
The 6 symbols are obtained from the English Alphabet, that is A,
B, C, D, E and F. Letters represents numbers from 10. A = 10, B
= 11, C = 12, D = 13, E = 14, F = 15.

Addition: This contains a table.

For example:
21
www.gradeup.co

Evaluate: (B A 3)16 + (5 D E)16

From the table,

3 + E = 11 1 1 carry
A + D = 17 BA3
17 + 1 (carry) = 18
5DE
B + 5 = 10
1181
10 + 1 (carry) = 11

Hence the required sum is 1181 in hexadecimal.

Subtraction:

This subtraction uses complement method. It is also similar to


decimal. The only variation is in borrowed number from a group of 1610.
Computers do it much efficiently for us. For example:

22
www.gradeup.co

Multiplication: Multiplication also uses a table.

Find multiplication of (B84F)16 and (A53)16


Solution:
7 5 3 9
3 2 1 4
2 1 2
B 8 4 F
× A 5 3

2 2 8 E D
3 9 9 8 B 0
7 3 3 1 6 0 0

7 6 E D 7 9 D

23
www.gradeup.co

Division: The table it created and used.

Example:

AE887)16÷3A)16

First make multiplication table for 3A and its multiples

3025.A3
3A*1 3A
3A⟌AE887
3A*2 74
AE
X88 3A*3 AE
74 3A*4 E8
147
122 3A*5 122

250 3A*6 15C


244
3A*7 196
B0
AE 3A*8 1D0
2
3A*9 20A
Answer:3025.A3)16
3A*A 244

3A*B 27E

Numeral systems conversion table


• Binary to Decimal

24
www.gradeup.co

For binary number with n digits:


dn-1 ... d3 d2 d1 d0
The decimal number is equal to the sum of binary digits (dn) times their power of
2 (2n):
Decimal = d0×20 + d1×21 + d2×22 + ...

• Binary to Octal

25
www.gradeup.co

• Binary to Hexadecimal:

• Decimal to Binary:

26
www.gradeup.co

• Decimal to Octal

• Decimal to Hexadecimal:

• Octal to Binary:

27
www.gradeup.co

• Octal to Decimal:

28
www.gradeup.co

• Octal to Hexadecimal

29
www.gradeup.co

• Hexadecimal to Binary:

• Hexadecimal to decimal:

Sum of powers method:

converts from least significant to most significant digit

310716 = (7X160) + (0X161) + (1X162) + (3X163)

= 7 + 0 + 256 + 12288

= 1255110

Multiply and add method:

Converts from most significant to least significant digit

310716

(3X16) + 1 = 48 + 1 = 49

(49X16) + 0 = 784 + 0 = 784

(784X16) + 7 = 12544 + 7 = 1255110

30

You might also like