On Sunday 18 May 2008 02:49:25 pm paul at clubi.ie wrote:
> I was simply pointing out that f(n) mod m is not necessarily (or
> > even usually) periodic, as someone had suggested.
>> I probably fail for relying on Wikipedia and Google, but which f(n)'s
> do you have in mind?
If f:N->N is a function then f(n) mod n is not necessarily
(or even usually) periodic.
I already gave examples of such functions,
namely the nth digit of pi or e (or sqrt2).
Or the continued fraction for the cube root of 2.
As I said, almost any sequence you think of
is going to be non-periodic,
unless there is some simple reason why it is periodic,
eg the decimal expansion of a rational number like 1/7 .
Nb I am not recommending any of these for pseudo-random number generation.
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!