Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

Sicangco, Hans Y.

Class Number 16
December 5, 2019 Prelims
CS1-1 Assignment #1

BEFORE CONVERSION REMEMBER THIS TABLE RULES

Base 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Etc.

Numbe In the type of base, the numbers are represented by these below.
r
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
3 3 3 3 3 3 3 3 3 3 3 3 3 3
4 4 4 4 4 4 4 4 4 4 4 4 4
5 5 5 5 5 5 5 5 5 5 5 5
6 6 6 6 6 6 6 6 6 6 6
7 7 7 7 7 7 7 7 7 7
8 8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9
10 Maximum Value of each base = A A A A A A
11 Base Value - 1 B B B B B
12 C C C C
13 Starting with number 10, the D D D
14 numbers will be represented with E E
15 letters F
16
Etc.

Main Steps:

1. Make a table of all the values of the power of the base value needed until it reaches your decimal
number (don’t include the numbers higher than the value to be converted)
2. Remove the 1st row and flip the table from right to left, making the numbers go from largest to
smallest

Decimal Value
3. =Value∧remainder -> Write the value below the box of the power of the
1 st Power of the base
base used

remainder
4. =Value∧remainder -> Write the value below the box of the power of
next Power of the base
the base used
Don’t stop until the remainder is 0. Once the remainder is 0 just write 0 in all the remaining boxes.

5. Once finished, if there are double digit numbers, convert them to their respective characters/letters.

6. Combine the characters to form the converted number.

DECIMAL TO BASE? ANSWER


1 5210 2 1101002
2 43010 9 5279
3 12,35610 15 39DB15
4 139,96810 6 30000006
5 584410 18 100C18

1. 5210 → N2

Step
1 Make a table of all the values of the power of the base value needed until it reaches
your decimal number (don’t include the numbers higher than the value to be
converted)

20 21 22 23 24 25 26
1 2 4 8 16 32 64

2 Remove the 1st row and flip the table from right to left, making the numbers go from
largest to smallest

32 16 8 4 2 1

3 How many 32’s are inside 52? 52/32 = 1 remainder 20. So we put a 1 below 32

32 16 8 4 2 1
1

4 We have 20 left. Next, how many 16’s are inside 20? 20/16 = 1 remainder 4. So we put
a 1 below 16

32 16 8 4 2 1
1 1

5 We now have 4 left. How many 8’s now are inside 4? 8/4 = 0 remainder 4. So we put a
0 below 8.
32 16 8 4 2 1
1 1 0

6 We still have 4 left. Now, how many 4’s are inside 4? 4/4 = 1. So we put a 1 below 4.

32 16 8 4 2 1
1 1 0 1

7 Because we are left with 0 (because there is no more remainder). We put 0’s in the
remaining boxes

32 16 8 4 2 1
1 1 0 1 0 0

8 We can now rewrite the number to binary form by combining the numbers from left to
right.

5210 → 1101002

2. 43010 → N9

Step
1 Make a table of all the values of the power of the base value needed until it reaches
your decimal number (don’t include the numbers higher than the value to be
converted)

90 91 92 93
1 9 81 729

2 Remove the 1st row and flip the table from right to left, making the numbers go from
largest to smallest

81 9 1

3 How many 81’s are inside 430? 430/81 = 5 remainder 25. So we put a 5 below 81

81 9 1
5

4 We have 25 left. Next, how many 9’s are inside 25? 25/9 = 2 remainder 7. So we put a
2 below 9

81 9 1
5 2

5 We now have 7 left. How many 1’s now are inside 7? 7/1 = 7. So we put a 7 below 1.

81 9 1
5 2 7

6 We can now rewrite the number to base-9 form by combining the numbers from left
to right.

43010 → 5279

3. 12,35610 → N15

Step
1 Make a table of all the values of the power of the base value needed until it reaches
your decimal number (don’t include the numbers higher than the value to be
converted)

150 151 152 153 154


1 15 225 3,375 50,625

2 Remove the 1st row and flip the table from right to left, making the numbers go from
largest to smallest

3,375 225 15 1

3 How many 3,375’s are inside 12,356? 12,356/3,375 = 3 remainder 2231. So we put a 3
below 3375

3,375 225 15 1
3
4 We have 2231 left. Next, how many 225’s are inside 2231? 2231/225 = 9 remainder
206. So we put a 9 below 225

3,375 225 15 1
3 9

5 We now have 206 left. How many 15’s now are inside 206? 206/15 = 13 remainder 11.
So we put a 13 below 15.

3,375 225 15 1
3 9 13

6 We now have 11 left. How many 1’s now are inside 11? 11/1 = 11. So we put a 11
below 1.

3,375 225 15 1
3 9 13 11

7 Because the base number is more than 10, let’s convert all the 2 digit numbers to their
corresponding symbols.

3,375 225 15 1
3 9 13 = D 11 = B

8 We can now rewrite the number to base-9 form by combining the characters from left
to right.

12,35610 → 39DB15

4. 139,96810 → N6

Step
1 Make a table of all the values of the power of the base value needed until it reaches
your decimal number (don’t include the numbers higher than the value to be
converted)

60 61 62 63 64 65 66 67
1 6 36 216 1,296 7,776 46,656 279,936
2 Remove the 1st row and flip the table from right to left, making the numbers go from
largest to smallest

46,656 7,776 1,296 216 36 6 1

3 How many 46,656’s are inside 139,968? 139,968/46,656= 3 remainder 0. So we put a 3


below 46,656

46,656 7,776 1,296 216 36 6 1


3

4 Because there is no remainder, we just put 0’s in the remaining boxes.

46,656 7,776 1,296 216 36 6 1


3 0 0 0 0 0 0

5 We can now rewrite the number to base-6 form by combining the numbers from left
to right.

139,96810 → 30000006

5. 5,84410 → N18

1 Make a table of all the values of the power of the base value needed until it reaches
your decimal number (don’t include the numbers higher than the value to be
converted)

180 181 182 183 184


1 18 324 5,832 104,976
2 Remove the 1st row and flip the table from right to left, making the numbers go from
largest to smallest

5,832 324 18 1

3 How many 5,832’s are inside 5,844? 5,844/5832= 1 remainder 12. So we put a 1 below
5,832

5,832 324 18 1
1

4 How many 324’s are inside 12? 12/324= 0 remainder 12. So we put a 0 below 324

5,832 324 18 1
1 0

5 How many 18’s are inside 12? 12/18= 0 remainder 12. So we put a 0 below 12

5,832 324 18 1
1 0 0

6 How many 1’s are inside 12? 12/1= 12. So we put a 12 below 1

5,832 324 18 1
1 0 0 12
7 Because the base number is more than 10, let’s convert all the 2 digit numbers to their
corresponding symbols.

5,832 324 18 1
1 0 0 12 = C
8 We can now rewrite the number to base-6 form by combining the numbers from left
to right.

584410 → 100C18

References:

http://extraconversion.com/base-number/base-10/base-10-to-base-9.html

https://www.tutorialspoint.com/computer_logical_organization/number_system_conversion.htm
Made my own formula (so I understand it better and can be applied to all bases)

You might also like