Multiples of 7 in Octal
For one of my computer science courses I had to convert things from base 10 into binary, octal, and hexadecimal. While going through the problem sets, I noticed that every multiple of 7's digits add up to another multiple of 7 when represented in octal. For example:
42 in base 10 -> 52 in base 8
84 in base 10 -> 124 in base 8
21 in base 10 -> 25 in base 8
Is this an actual pattern, or just sheer coincidence? If it is a pattern, can this be generalized to other bases? Are there any theorems or lemmas or whatever related to this?
Posted Dec 18, 2023, 6:47 AM UTC
You know the divisibility by 9 in base 10? The proof works for divisibility by b-1 in base b.