Using the sequence (and my TI-89)
A_n = \sum\limits_{k = 0}^n {\left( {\left\lfloor {\frac{n}{{p^k }}} \right\rfloor - p\left\lfloor {\frac{n}{{p^{k + 1} }}} \right\rfloor } \right)\left( {\frac{p}{q}} \right)^k }
I tried to derive the relationship between n and r. In other words, calculate the value of n given any r = A_n (much like finding the inverse of a function or sequence...at least for the natural values of A
n).
As it turns out, A
n is not everywhere increasing, although an interesting & noticeable pattern is generated upon inspection. If someone can provide me with a download/link where I can plot sequences, I can attach the image here, of this sequence.
AKG said:
Now I'm not exactly sure how to formulate it, but I was thinking that we could use the pigeonhole principle in some way.
Not quite, though. There are sequences of \left\{ {a_0 ,a_1 , \ldots ,a_n } \right\} \subset \mathbb{Z} \cap \left[ {0,p - 1} \right] for which
\sum\limits_{k = 0}^n {a_k \left( {\frac{p}{q}} \right)^k }
is not an integer.
You see, \forall n \in \mathbb{N}, there are
p^{n+1}
different sequences possible.
Of course,
For all sequences \left\{ {a_0 ,a_1 , \ldots ,a_n } \right\} (that satisfy the conditions), the largest sum possible is
\left( {p - 1} \right)\sum\limits_{k = 0}^n {\left( {\frac{p}<br />
{q}} \right)^k }
which corresponds to a sequence where every term is p-1.
-And also, the largest possible integer--that \left\{ {a_0 ,a_1 , \ldots ,a_n } \right\} can correspond to--is thus:
\left\lfloor {\left( {p - 1} \right)\sum\limits_{k = 0}^n {\left( {\frac{p}<br />
{q}} \right)^k } } \right\rfloor
---------------------------------------
However,
\forall q > 1, \; p^{n + 1} > 1 + {\left( {p - 1} \right)\sum\limits_{k = 0}^n {\left( {\frac{p}{q}} \right)^k } }
There will be a
greater quantity of sequences possible (that satisfy the conditions) than is needed to express all the integers from zero to
\left\lfloor {\left( {p - 1} \right)\sum\limits_{k = 0}^n {\left( {\frac{p}{q}} \right)^k } } \right\rfloor
(Needless to say, the extraneous non-integer-representing sequences will represent non-integral rational numbers)
Hurkyl said:
How big can that sum be?
Well, the sum can be any natural number. And as the
Frivolous Theorem of Arithmetic states

,
"Almost all natural numbers are very, very, very large."
