Skip to main content

Convert (17)₁₀ to Gray

Short answer

17₁₀ = 10001₂. Gray code: keep MSB 1, then XOR each adjacent binary bit: 1⊕0=1, 0⊕0=0, 0⊕0=0, 0⊕1=1 → 11001 (Gray).

Convert (17)₁₀ = (?)gray.

First convert decimal to binary, then to Gray code: the MSB stays the same and each next Gray bit is the XOR of two adjacent binary bits, Gi=Bi+1⊕BiG_i = B_{i+1} \oplus B_i.

Step 1: 1710=16+1=(10001)217_{10} = 16 + 1 = (10001)_2

Step 2: Binary to Gray

Binary bitsOperationGray bit
1copy MSB1
1, 01⊕01 \oplus 01
0, 00⊕00 \oplus 00
0, 00⊕00 \oplus 00
0, 10⊕10 \oplus 11

Answer: (17)10=(10001)2=(11001)gray(17)_{10} = (10001)_2 = (11001)_{gray}

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 1 questions →