Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top



How would I solve this

share|cite|improve this question
What do quadratic forms have to do with this? – Marc van Leeuwen Mar 11 '13 at 15:16
You might want to consider accepting an answer to your questions: do accept an answer (one per question), you simply click on the $\checkmark$ to the left of the answer you'd like to accept. Plus you get 2 reputation points for each answer you accept. When you get 30+ rep, you can upvote as many answers as you'd like. – amWhy Mar 11 '13 at 17:10

I'm not sure wether i should reply or not since this smells like homework; anyway, just think what base x means:

$213_x = 139_{10} \Rightarrow 2x^2+x+3 = 139$

$21_x = 1021_{4} \Rightarrow 2x + 1 = 4^3 + 2\cdot 4 + 1$

Now solve the 2 equations and you're done

PS : on the right side of the $\Rightarrow$ , every number is assumed to be $\text{base 10}$

share|cite|improve this answer

$$213_x=139_{10}$$ $$2\cdot x^2+1\cdot x^1+3\cdot x^0=1\cdot 10^2+3\cdot 10^1+9\cdot10^0$$ $$2x^2+x+3=139$$ $$2x^2+x-136=0\Rightarrow x_{1,2}=\frac{-1\pm\sqrt{1+8\cdot 136}}{4}=\frac{-1\pm33}{4}$$ $$x_1=8$$ the base $$x_2=-17/2$$ is not a correct base see comments below.

similarly $$21_x=1021_4$$ $$2x+1=4^3+2\cdot 4 +1=73\Rightarrow x=36$$

share|cite|improve this answer
Bases are normally positive integers only, sometimes negative integers make sense. Rationals I've never seen. – vonbrand Mar 11 '13 at 18:03
you never seen, me too but that does not mean that they do not exist, the example above shows that they exist. Can you give the reason that such bases are wrong to use. – Adi Dani Mar 11 '13 at 18:13
They are wrong because $-1111_{-2} = 101_{-2}$ – kaharas Mar 11 '13 at 18:22
@AdiDani: Nice Adi, have a good day ahead. – Babak S. Mar 14 '13 at 6:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.