Practice: Level 1 | Level 2 | Level 3

We live in a decimal world, meaning we live in a base 10 world. In our number system, there are ten digits, 0-9. Once we reach the maximum value (9) in a column, we roll it over to the start (0), and increment the next column to the left. _8, _9, 10, 11,...,18, 19, 20, ...
The decimal number system, like all number systems, has place values. Place values are the standard unit value for each column in a number. Place value increase from right to left. The place values are determined by the powers of the base, starting at 0. The number 123,456 can be represented with place values as follows:
123456
100000100001000100101
105104103102101100

By examining how our number system works, we can then find how other number systems work as well. So, if we were to talk about base 8(octal), then there would be 8 digits, 0-7. The place values, from right to left, are 80, 81, 83...

The common bases in computer science are as follows:
BaseNameDigitsColumns
2Binary0-1...16, 8, 4, 2, 1
8Octal0-7...512, 64, 8, 1
10Decimal0-9...1000, 100, 10, 1
16Hexadecimal0-F...4096, 256, 16, 1

Competition problems in Number Systems usually deal in: