Skip to main content

Convert (10011)Gray to octal

Short answer

Gray code 10011 converts to binary 11101 (decimal 29) using B_MSB = G_MSB and B_i = B_i+1 XOR G_i. Binary 11101 grouped into 011 101 yields octal 35.

Convert (10011)Gray = (?)₈.

Convert Gray to binary, then group the binary in 3 bits for octal.

Step 1: Gray to binary (BMSB=GMSBB_{MSB} = G_{MSB}, Bi=Bi+1⊕GiB_i = B_{i+1} \oplus G_i)

Gray bitOperationBinary bit
1copy1
01⊕01 \oplus 01
01⊕01 \oplus 01
11⊕11 \oplus 10
10⊕10 \oplus 11

(10011)Gray=(11101)2=2910(10011)_{Gray} = (11101)_2 = 29_{10}

Step 2: Binary to octal (group from the right: 011 101)

Group011101
Octal35

Check: 3×8+5=293 \times 8 + 5 = 29.

Answer: (10011)Gray=(35)8(10011)_{Gray} = (35)_8

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 1 questions →