0
$\begingroup$

Consider a simple linear equation of the form:

$n=\frac{2x+2}{3}$

Let $n$ and $x$ represent something that comes in whole positive quantities (for example physical objects).

How can I

  1. Define the equation only for $n$ and $x$ that are a part of natural numbers (whole numbers >0)
  2. Solve the equation satisfying the above restriction (without for instace graphing it and looking for $n$ and $x$ that work)

Thanks!

  • 0
    @Joshua I derived this equation from my work on error correcting codes. If every 2nd bit is flipped in codewords of length 3, then codewords number $n$ will have their _first_ bit flipped, hence also flipping their last bit resulting in _two_ bits being flipped in that particular codeword. Does it make sense?2011-02-23

1 Answers 1

0

If you want only integer solutions, then you have a Diophantine problem. Your equation can be written $3n=2x+2$, from which you deduce that $n$ is even. From there, it's easy to find all integer solutions. You can then select the positive ones, if any.

  • 0
    @Milosz: you can just write as you did and add "$x,n \in \mathbb N$".2011-02-23