Write 12767 in base 16

To write 12767 in base 16 (hexadecimal), you will need to convert the number from its decimal form to hexadecimal form. Here's how you can do it:

Step 1: Divide the number 12767 by 16.
12767 ÷ 16 = 797 remainder 15 (F in hexadecimal)

Step 2: Divide the quotient (797) by 16 again.
797 ÷ 16 = 49 remainder 13 (D in hexadecimal)

Step 3: Continue dividing the quotient until you reach 0.
49 ÷ 16 = 3 remainder 1 (1 in hexadecimal)

Step 4: The last quotient (3) will be the leftmost digit in the hexadecimal representation.

Therefore, 12767 in base 16 is written as 31DF.