Let's divide 31010034 by 402
The aim is to understand the frequency of 402 in 31010034.

Let's proceed to step 1:
402 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 402

Going ahead to step 2:
402 goes into 31 0 times with a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Take the next digit (0) from the dividend and append it to 31, then repeat: 310 / 402

Moving on to step 3:
If we divide 310 by 402, we get 0 and a remainder of 310.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 310 after subtracting 0 from 310.
Append the next digit (1) from the dividend to 310 and continue with: 3101 / 402

Moving on to step 4:
402 can be fit into 3101 7 times, resulting in a remainder of 287.
Put 7 as the next digit of the answer. 
Result so far: 7.0
If we take 2814 away from 3101, we end up with 287.
Append the next digit (0) from the dividend to 287 and continue with: 2870 / 402

Advancing to step 5:
2870 divided by 402 is 7 with a remainder of 56.
Write down 7 as next digit of the result. 
Result so far: 77.0
Subtract 2814 from 2870 to get 56.
Take the next digit (0) from the dividend and append it to 56, then repeat: 560 / 402

Advancing to step 6:
560 divided by 402 is 1 with a remainder of 158.
Write down 1 as next digit of the result. 
Result so far: 771.0
If we subtract 402 from 560, we get 158.
Fetch the next digit (3) from the dividend, attach it to 158 and continue: 1583 / 402

Going ahead to step 7:
The number 402 fits into 1583 3 times, leaving a remainder of 377.
The number 3 becomes the next digit in our result. 
Result so far: 7713.0
Deduct 1206 from 1583 and we're left with 377.
Take the next digit (4) from the dividend and append it to 377, then repeat: 3774 / 402

Going ahead to step 8:
3774 divided by 402 is 9 with a remainder of 156.
Record the quotient 9 as the next digit in the result. 
Result so far: 77139.0
If we take 3618 away from 3774, we end up with 156.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1560, and continue the process.

Let's proceed to step 9:
When dividing 1560 by 402, we get 3 with a remainder of 354.
The number 3 becomes the next digit in our result. 
Result so far: 77139.3
If we take 1206 away from 1560, we end up with 354.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3540, and continue the process.

On to step 10:
When dividing 3540 by 402, we get 8 with a remainder of 324.
Put 8 as the next digit of the answer. 
Result so far: 77139.38
The remainder is 324 after subtracting 3216 from 3540.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3240, and continue the process.

Let's proceed to step 11:
402 can be fit into 3240 8 times, resulting in a remainder of 24.
The number 8 becomes the next digit in our result. 
Result so far: 77139.388
If we subtract 3216 from 3240, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

The final outcome is 77139.388, with a leftover of 0.0024.