A change of base

This is a 6-digit number in base 7:

a a b c c b 7 \large aabccb_7

If a a , b b , and c c represent 3 distinct digits (from 0 to 6), is a a b c c b 7 aabccb_7 odd or even?

Not enough information Odd Even

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

David Vreken
Nov 10, 2018

a a b c c b 7 aabccb_7 is equal to 7 5 a + 7 4 a + 7 3 b + 7 2 c + 7 c + b 7^5a + 7^4a + 7^3b + 7^2c + 7c + b or ( 7 5 + 7 4 ) a + ( 7 3 + 1 ) b + ( 7 2 + 7 ) c (7^5 + 7^4)a + (7^3 + 1)b + (7^2 + 7)c in base 10 10 .

Since 7 m 7^m is odd (for all integers m 0 m \geq 0 ), 7 m + 7 n 7^m + 7^n is even (for all integers m 0 m \geq 0 and n 0 n \geq 0 ). This makes each coefficient of a a , b b , and c c even, which makes the whole expression always even .

Geoff Pilling
Nov 9, 2018

In base 7, even-ness is determined by adding up the digits. Since each digit is in there twice, the sum is clearly even, so the number is even as well.

Does this work for all odd bases? I think it does, but I'm not quite sure.

Henry U - 2 years, 7 months ago

Log in to reply

Yes, it does.

Every digit represents a multiple of a power of 7 7 , this power is always odd and therefore the digit represents a numbet of the same parity as this digit itself, so adding up all digits gives the same parity as adding up the numbers they represent.


n 2 k + 1 = i = 0 d i ( 2 k + 1 ) i i = 0 d i ( m o d 2 ) \begin{aligned} n_{2k+1} &= \displaystyle \sum_{i=0}^{\infty} d_i \cdot (2k+1)^i \\ &\equiv \sum_{i=0}^{\infty} d_i \pmod 2 \end{aligned}

Henry U - 2 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...