Zurtex said:
The question is still a little ill-posed, I'm not exactly sure what you want.
I'll write it out simply:
For any natural numbers p,q,r where p>q>0,
there exists a
sequence {a
0, a
1,...,a
n} whose terms (i.e., ALL a
i) are all integers between zero(0) and p-1
such that
r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}<br />
{q}} \right)^k }
------------------------------
Zurtex said:
Can you generate any natural number r for every pair (p,q)?
In which case, no, take the pair (p,q) = (4,1) and take the r = 3. There exists no way you can generate 3 from that pair and it's easy to show.
And here is why this assertion is incorrect:
Let p = 4 and q = 1. You have the pair (4,1). The sequence corresponding to r=3 is simply {3}
Because:
1) All elements sequence are integers between zero and p-1 inclusively.
2) '3' is an integer inclusively between zero(0) and p-1. In other words,
3 \in \left[ {0,p - 1} \right] \cap \mathbb{Z} \Rightarrow 3 \in \left[ {0,3} \right] \cap \mathbb{Z}
3) The sequence a
0=3 (a sequence with one term) satisfies
r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}<br />
{q}} \right)^k }
when p=4, q=1, and r=3. Why? Because:
\sum\limits_{k = 0}^0 {a_k \left( {\frac{p}{q}} \right)^k } = a_0 \left( {\frac{4}{1}} \right)^0 = 3\left( 1 \right) = 3
Zurtex said:
I never said you said that, however it is also trivially true in the case of:
q = anything
and
p > r
With a little more work that can be broadened a little to an easy proof (almost trivial) for:
q= anything
and
p > r or p = r
Hmm, I think I may of misunderstood you though, when you say: "q=1 and r<p" are you referring to 2 different cases? It really doesn't look like it, but it is also trivially true of the case of:
q = 1
Zurtex, the statement is trivially true when r <= p or q=1.
But, have you considered when
BOTH r > p and q > 1 ?
Or to put it briefly, when
r > p > q > 1 ?

-----------------------------------------------
Here are some examples where r > p > q > 1
:
1) p=7, q=4, r=39. Thus, the sequence is {4,6,1,4}, as
4 + 6\left( {\frac{7}{4}} \right) + 1\left( {\frac{7}{4}} \right)^2 + 4\left( {\frac{7}{4}} \right)^3 = 39
2) p=13, q=10, r=29. Thus, the sequence is {3,7,10}, as
3 + 7\left( {\frac{{13}}{{10}}} \right) + 10\left( {\frac{{13}}<br />
{{10}}} \right)^2 = 29
3) p=17, q=11, r=94. Thus, the sequence is {12,4,16,11}, as
9 + 4\left( {\frac{{17}}{{11}}} \right) + 16\left( {\frac{{17}}{{11}}} \right)^2 + 11\left( {\frac{{17}}{{11}}} \right)^3 = 94
daveb said:
...it still works trivially if r < p since you can dictate that a(0) = r and then take all other a(k) = 0.
It seems as though people here are still preoccupied with the
trivially true cases
So, I'll rewrite this statement to
remove ALL trivially true cases
:
\begin{gathered}<br />
\forall p,q,r \in \mathbb{N}\;{\text{where }}r > p > q > 1, \hfill \\<br />
\exists \left( {a_k } \right)_{k = 0}^n \;{\text{where }}\forall k \geqslant 0,\;a_k \in \left\{ {0,1, \ldots ,p - 1} \right\}, \hfill \\<br />
{\text{such that }}r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}<br />
{q}} \right)^k } \hfill \\ <br />
\end{gathered}
~Now, true or false?