# What is the correct domain specification?

**URL:** <https://community.wolfram.com/t/what-is-the-correct-domain-specification/22611>\
**Category:** Questions\
**Tags:** algebra, equation-solving, symbolic-computations\
**Created:** [August 5, 2023, 10:57pm UTC](https://community.wolfram.com/t/what-is-the-correct-domain-specification/22611 "2023-08-05T22:57:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruzalskigr](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@gruzalskigr](https://community.wolfram.com/u/gruzalskigr)\
**Post date:** [August 5, 2023, 10:57pm UTC](https://community.wolfram.com/t/what-is-the-correct-domain-specification/22611/1 "2023-08-05T22:57:18Z")

</div>

I am a newbie regarding Mathematica and this forum. Please let me know if my question should have been asked elsewhere.

If I wanted to solve three equations (eq) for {a, b, c}, where {a, b, c} are positive integers, I could write

```
    Solve[eq, {a, b, c}, PositiveIntergers].

```

My question is, how would I write the domain specification if the domain were the positive integers up to some maximum number, say 17? These attempts didn’t work:

```
    Solve[eq, {a,b,c,}, PositiveIntegers<17]

    Solve[eq, {a, b, c} (a|b|c)∈Z_>0 && a<17 && b<17 && c<17]

```

Greg

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [August 6, 2023, 8:53am UTC](https://community.wolfram.com/t/what-is-the-correct-domain-specification/22611/2 "2023-08-06T08:53:10Z")

</div>

You can add those conditions to the equation:

```
Solve[eq && a < 17 && b < 17 && c < 17,
 {a, b, c}, PositiveIntergers]

```
