Re: mod function and division

From: Tom St Denis (tom_at_securescience.net)
Date: 03/30/04


Date: Mon, 29 Mar 2004 23:26:14 GMT

dahlia wrote:

> a simple question for this illustrious group:
>
> what is the fastest way ( algorithm ) to find out if  big numbers( hundred
> of digits )  N(i) are divisible by a small number below 100 ( say 37 )? do
> we do the divisions or do we use the mod function?

You need not any "hard" form of divisions.  You need only a "digit shift",
multiplication and addition/subtraction.

I'd tell you about a free text book on math that covers this topic but
apparently the concensus here is that the book isn't worthy.

Tom



Relevant Pages

  • Re: encryption with pi
    ... (might be a worthy addition to your library, Tom, ... in case there are any libcrypt functions that use large digits of pi) ... the position of the starting digit, and the length of the string ... >> provable properties other than it's not a simple pattern. ...
    (sci.crypt)
  • Re: encryption with pi
    ... Tom St Denis wrote: ... >>and 'n' is the sequenced character of the plaintext ... > digits of pi you can determine where the first one was. ... I've never heard of anyone showing a pattern in the digits of PI (not to ...
    (sci.crypt)
  • Re: Guessing?
    ... Bah! ... If you are not into double digits, ... "This is a worthless activity", said Tom ...
    (comp.databases.theory)
  • Re: encryption with pi
    ... ]Tom St Denis wrote: ... That and who says identifying a sequence as part of "Pi" is a hard ... ]> digits of pi you can determine where the first one was. ... ]> provable properties other than it's not a simple pattern. ...
    (sci.crypt)
  • Re: =LEFT Function
    ... Using your existing formula will pull in all of the digits before the first ... "Tom" wrote in message ... if I may have also a single digit that needs to become itself in ...
    (microsoft.public.excel.worksheet.functions)