334 ÷ 9 = 37 R1
Let's divide 334 by 9.

Step 1:
9 goes into 3 0 times with a remainder of 3.
Write down 0 as next digit of of the result. 
Result so far: 0
Subtract 0 from 3 to get 3.
Bring next digit (3) of the dividend behind the 3 and repeat the process: 33 / 9

Step 2:
9 goes into 33 3 times with a remainder of 6.
Write down 3 as next digit of of the result. 
Result so far: 3
Subtract 27 from 33 to get 6.
Bring next digit (4) of the dividend behind the 6 and repeat the process: 64 / 9

Step 3:
9 goes into 64 7 times with a remainder of 1.
Write down 7 as next digit of of the result. 
Result so far: 37
Subtract 63 from 64 to get 1.

The final result is 37 with a remainder of 1.