# Rational or Irrational number [closed]

we know that "$a$" is a Irrational number .But "$a^2+a$" is Rational. Can You find "$a$"? (more than one answer is available)

-

## closed as off-topic by zz20s, Jean-Claude Arbaut, G. Sassatelli, pjs36, quidMar 27 at 18:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – zz20s, Jean-Claude Arbaut, G. Sassatelli, pjs36, quid
If this question can be reworded to fit the rules in the help center, please edit the question.

Any irrational number of form $\sqrt n - \frac{1}{2}$, where $n$ is an integer. – Ziqian Xie Mar 27 at 15:08
@vladz no $sqrt(2)$ a bad example – openspace Mar 27 at 15:11

We have $a^2+a=r\in\Bbb Q$ if and only if $$a=\frac{-1\pm\sqrt{1+4r}}{2}.$$ Any $r\in\Bbb Q$ such that $1+4r$ is not a perfect square will do.

-

Hint complete the square you get $(a+\frac{1}{2})^2-\frac{1}{4}$ so any number of the form $√n-\frac{1}{2}$ will give it as a cancels out with $-a$ making number rational.

-
though you need $n$ to not be a (rational) square to ensure $\sqrt{n}-\frac{1}{2}$ is irrational – Henry Mar 27 at 18:51

Consider $x^2 + x = \dfrac pq$
for some relatively prime integers $p$ and $q$.

Hence $qx^2 + qx - p = 0$

So, for any relatively prime integers $p$ and $q$ such that $q^2 + 4pq$ is positive and not a perfect square,

$a \in \left\{ \dfrac{-q \pm \sqrt{q^2 + 4pq}}{2q} \right\}$

will have the property that $a$ is irrational and $a^2 + a = \dfrac pq$.

-