# Number systems

This calculator shifts numbers between different number systems.
In different number systems there are e.g. just two or three digits instead of 10.

The value of the digits in a system with n digits is calculates as follows:

The right digit has always the value 1*its value

The second right digit has the value n*its value

The third right digit has the value n*n*its value, the fourth right digit the value n*n*n*its value and so on.

The value of the number is gotten by adding the values received.

Tu make this more understandable, here an

Let's calculate the value of a number written as 3142 in the 5-digit system. At right stands a 2 having the value 1*2=2.

Left to it stands a 4 having the value 5*4=20.

Left to it stands a 1 having the value 5*5*1=25.

At the left stands a 3 having the value 5*5*5*3=375.

So you get 375+25+20+2=422.

Here is an example: Lets transform 347 into the system with 4 digits.

347:4=86 Remainder 3, so 3 stands on the right.

86:4=21 Remainder 2, so 2 is the next digit on the right

21:4=5 Remainder 1, so 1 is the next digit.

5:4=1 Remainder 1, so we got one more 1.

1:4 equals 0 Remainder 1, so we got one more 1 and are done.

This means 347 is written as 11123 in the 4-digit system.