We divide 663777 by 31
The aim is to understand the frequency of 31 in 663777.

On to step 1:
The number 31 fits into 6 0 times, leaving a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Fetch the next digit (6) from the dividend, attach it to 6 and continue: 66 / 31

Moving on to step 2:
The number 31 fits into 66 2 times, leaving a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 62 away from 66, we end up with 4.
Take the next digit (3) from the dividend and append it to 4, then repeat: 43 / 31

On to step 3:
31 can be fit into 43 1 times, resulting in a remainder of 12.
Write down 1 as next digit of the result. 
Result so far: 21.0
Deduct 31 from 43 and we're left with 12.
Take the next digit (7) from the dividend and append it to 12, then repeat: 127 / 31

Advancing to step 4:
If we divide 127 by 31, we get 4 and a remainder of 3.
The number 4 becomes the next digit in our result. 
Result so far: 214.0
Subtract 124 from 127 to get 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 31

On to step 5:
The number 31 fits into 37 1 times, leaving a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 2141.0
Subtract 31 from 37 to get 6.
Take the next digit (7) from the dividend and append it to 6, then repeat: 67 / 31

On to step 6:
The number 31 fits into 67 2 times, leaving a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 21412.0
Deduct 62 from 67 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 7:
When dividing 50 by 31, we get 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 21412.1
Subtract 31 from 50 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 8:
31 can be fit into 190 6 times, resulting in a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 21412.16
If we take 186 away from 190, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 9:
If we divide 40 by 31, we get 1 and a remainder of 9.
The next digit of our result is 1. 
Result so far: 21412.161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 10:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 21412.1612
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 11:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 21412.16129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 12:
When dividing 10 by 31, we get 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 21412.16129
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 13:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 21412.1612903
Subtracting 93 from 100 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 14:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 21412.16129032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

In conclusion, the division gives 21412.16129032 with a balance of 8e-09.