We look at the division of 51854872 by 402 
The aim is to understand the frequency of 402 in 51854872.

Advancing to step 1:
When dividing 5 by 402, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 402

Let's proceed to step 2:
51 divided by 402 is 0 with a remainder of 51.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 51, we end up with 51.
Bring next digit (8) of the dividend behind the 51 and repeat the process: 518 / 402

Moving on to step 3:
402 goes into 518 1 times with a remainder of 116.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 402 from 518, we get 116.
Include the next digit (5) from the dividend after 116, then repeat: 1165 / 402

Step 4:
402 goes into 1165 2 times with a remainder of 361.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Deduct 804 from 1165 and we're left with 361.
Include the next digit (4) from the dividend after 361, then repeat: 3614 / 402

Step 5:
3614 divided by 402 is 8 with a remainder of 398.
Put 8 as the next digit of the answer. 
Result so far: 128.0
Subtracting 3216 from 3614 leaves us with 398.
Fetch the next digit (8) from the dividend, attach it to 398 and continue: 3988 / 402

Step 6:
402 can be fit into 3988 9 times, resulting in a remainder of 370.
Write down 9 as next digit of the result. 
Result so far: 1289.0
The remainder is 370 after subtracting 3618 from 3988.
Append the next digit (7) from the dividend to 370 and continue with: 3707 / 402

Step 7:
402 can be fit into 3707 9 times, resulting in a remainder of 89.
The number 9 becomes the next digit in our result. 
Result so far: 12899.0
Subtract 3618 from 3707 to get 89.
Grab the next digit (2) from the dividend, add it to 89, then carry on: 892 / 402

Advancing to step 8:
If we divide 892 by 402, we get 2 and a remainder of 88.
The next digit of our result is 2. 
Result so far: 128992.0
Subtract 804 from 892 to get 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Step 9:
402 can be fit into 880 2 times, resulting in a remainder of 76.
The number 2 becomes the next digit in our result. 
Result so far: 128992.2
The remainder is 76 after subtracting 804 from 880.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Advancing to step 10:
402 can be fit into 760 1 times, resulting in a remainder of 358.
Put 1 as the next digit of the answer. 
Result so far: 128992.21
If we subtract 402 from 760, we get 358.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3580, and continue the process.

Moving on to step 11:
If we divide 3580 by 402, we get 8 and a remainder of 364.
Write down 8 as next digit of the result. 
Result so far: 128992.218
Subtracting 3216 from 3580 leaves us with 364.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3640, and continue the process.

Moving on to step 12:
The number 402 fits into 3640 9 times, leaving a remainder of 22.
Write down 9 as next digit of the result. 
Result so far: 128992.2189
Subtracting 3618 from 3640 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 13:
402 goes into 220 0 times with a remainder of 220.
Write down 0 as next digit of the result. 
Result so far: 128992.2189
Deduct 0 from 220 and we're left with 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2200, and continue the process.

Moving on to step 14:
2200 divided by 402 is 5 with a remainder of 190.
The number 5 becomes the next digit in our result. 
Result so far: 128992.218905
Deduct 2010 from 2200 and we're left with 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Advancing to step 15:
1900 divided by 402 is 4 with a remainder of 292.
Put 4 as the next digit of the answer. 
Result so far: 128992.2189054
Subtracting 1608 from 1900 leaves us with 292.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2920, and continue the process.

Advancing to step 16:
402 goes into 2920 7 times with a remainder of 106.
Put 7 as the next digit of the answer. 
Result so far: 128992.21890547
Deduct 2814 from 2920 and we're left with 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

Our division results in 128992.21890547 with a remaining 1.06e-07.