If ξ is irrational number then it is known that the set {pξ+q | p,q∈Z} is dense in R. Thus given some reals a and b one can find integers p and q such that a≤pξ+q<b . But how?
Being precise i have a,b,ξ>0 and i'm searching for an algorithm to find a pair (p,q) with p positive and least possible, q negative.
I don't expect anything much more efficient than brute force search but at least which bounds can we put on p and q to narrow the search space?
Answer
Let [x] denote the largest integer not exceeding x. Let e∈R−Q.
For k∈N, define dk=ek−[ek] and define k′ as follows :
Let lk∈N where lkdk<1<(1+lk)dk. Let k′=−lkk if 1−lkdk<(1+lk)dk−1. Otherwise let k′=(1+lk)k. $$\text {Observe that }\quad 0< d_{k'}
Let k1=1 and let kn+1=k′n. Now choose a∗∈(a,b))−Z. Let M be the least (or any) n such that dkn<min(b−a∗,a∗−[a∗]). For brevity let C=kM. $$\text {We have }\quad 0< C e-[C e]
Let D∈N where $$(D-1)(C e-[C e])\leq a^*-[a^*]
The use of a∗ was to remove the need to treat the cases a∈Z and a∉Z separately.
No comments:
Post a Comment