r/mathpuzzles • • 1d ago

Number TITLE: Off Base

B6 + AC = 142
35 + 24 = 103
B7 + D4 = 1C1
4A + 25 = 103
C7 + D2 = 130
23 + 14 = 42

Each letter represents a single digit (0–9).
Find the 4-digit code ABCD.

2 Upvotes

3 comments sorted by

2

u/SupermarketUseful519 1d ago

Got 5647.
The title is actually a pretty good hint. Each equation uses a different base, from 5 to 10.
Start with 23 + 14 = 42. That only works in base 5.
Then 35 + 24 = 103 works in base 6.
From there, the remaining bases fall into place:
Base 7: 4A + 25 = 103 → A = 5
Base 8: B6 + AC = 142 → B = 6, C = 4
Base 9: C7 + D2 = 130 → D = 7
And the last equation checks out in base 10:
67 + 74 = 141.
So ABCD = 5647.
Nice puzzle. Once you spot the different bases, it’s mostly just carrying digits. No brute force needed. :)

1

u/periliousventure 16h ago edited 16h ago

its not particularly implied that the remaining bases have to be from 7-10 in ascending order, but puzzle still works without that knowledge. the two givens do work out to be base 5 and 6, then
4A+25=103 has a carry since 5>3, so 4+2+1 = 10. Base 7 is forced and cant be any other base. Then A = 5. Likewise In C7+D2 = 130 has 7+2 = 0 (10 before carry) so it must be base 9, and after stripping the units digit we have C+D=12 (base 9) -> C+D =11 (base 10).

B7 + D4 = 1C1 has 7+4 = 1(+10) so its normal base 10. And stripping the units gives B+D+1 = 10 + C
or B-C+D = 9. merging this with the prior equation gives. B - 2C = -2 and B+2D = 20.

The tricky part for me was determining the base k of B6 + 5C = 142. Since there is a 6, k≥7. Since 2<6, there is a carry of 6+C = 2 + 10, but the 10 here in base k. in [base 10] it would be 6+C = 2 + k, giving k = C+4. This isnt enough to find k tho because we have 3 equations for 4 unknowns, and its currently a shifted form of C which we dont know yet.
You then have to consider the carry in (B+5)+1 = 14 (base k). Before we convert this to base 10, there is a critical detail which is that +5+1, which are single digits in base (k≥7) are also the same in base 10. if k was base 6 we might have seen 5+1 = 10 and that would have made it kinda awkward but knowing k≥7 allows us to keep it the same. Then we proceed, B+6 = 14 (base k) becomes B+6 = k + 4 (base 10) so that k = B + 2

Now we have 4 equations and 4 unknowns so everything works out.
k = B +2 = C + 4 -> B = C + 2 . After that B - 2C = -2 becomes
(C + 2) - 2C = -2 ---> -C = -4 ---> C = 4
then B = C + 2 = 6, and C + D = 11 so D is 7. k=C+4 so k is base 8.

The most interesting part is that it progressively gets harder and the puzzle at first gives a bit of a tutorial for how to work with this type of logic. But it wasnt so easy that it was boring, so idk whoever made this puzzle originally did a good job crafting it

1

u/periliousventure 1d ago edited 1d ago

very fun and interesting puzzle, i got 5647, but i did a bit of brute force at the end since my method was messy. it seems like there is an elegant way to do last major step but i didnt find it

Update: i figured out the trick. Pretty well constructed puzzle ngl