2
$\begingroup$

I want to find integer solutions of the following inequality by using Mathematica

$$\bigg| \sqrt[3]{2}-\frac{p}{q} \bigg | <\frac{1}{q^{5/2}}$$

Reduce[Abs[Surd[2, 3] - p/q] < 1/q^(5/2), {p, q}, Integers] //ToRadicals // TraditionalForm

but there is a strange result

enter image description here

I also tried FindInstance but there is the only one solution

FindInstance[Abs[Surd[2, 3] - p/q] < 1/q^(5/2), {p, q}, Integers, 2]

enter image description here

There are 3 solutions according the Wolfram Alpha

enter image description here

but...

WolframAlpha["Abs[Surd[2,3]-p/q]<1/q^2.5)", {{"IntegerSolution"}, "Content"}]

{}

It's still not working..

I tried "Open Code" in WolframAlpha but it didn't help me.

what's going on here? :)

$\endgroup$
  • 2
    $\begingroup$ If you don't mind specifying a range of integers to search (which, understandably, you probably do) you could use a region: reg = ImplicitRegion[Abs[Surd[2, 3] - p/q] < 1/q^(5/2), {{p, 1, 5}, {q, 1, 5}}]; and then Reduce[Element[{p, q}, reg], {p, q}, Integers] gives you the desired output. $\endgroup$ – aardvark2012 Sep 30 '17 at 12:46
4
$\begingroup$

See KennyColnago answer.

Union[Flatten[
Select[Table[
Quiet[FindInstance[Abs[Surd[2, 3] - p/q] < 1/q^(5/2), {p, q}, 
Integers, 2, RandomSeed -> k]], {k, 1, 200}], 
Head[#] =!= FindInstance &], 1]]

(* {{p -> 1, q -> 1}, {p -> 2, q -> 1}, {p -> 5, q -> 4}} *)
$\endgroup$
  • $\begingroup$ Too slow....... $\endgroup$ – vito Oct 1 '17 at 5:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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