$p(2 5-.~[:q:]%+.)q
0

Assuming p and q are rank 0, of course. (And this is a reasonable
assumption, since the problem statement suggests no use for dimensions).

Thanks,

-- 
Raul
On Jul 22, 2014 11:24 AM, "Dan Bron" <[email protected]> wrote:

> Given 3 positive integers p,q and b, where p and q represent the numerator
> and denominator of a rational number (respectively), and b a numerical
> base (or radix), how can we know if p%q has a finite (or not)
> representation in b?
>
> In other words, if p%q can be represented by a finite
> (non-infinitely-repeating) decimal in base b, then what do we know about
> the relationship of p to q or p%q to b ?
>
> You may allow p to take on the value 0 if needed for generality, but q is
> strictly > 0 (obviously) and b is strictly > 1 (probably?).
>
> -Dan
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to