Re: problem of arithmetic modulo



On Tue, 22 Jan 2008 21:19:25 -0800, William Elliot wrote:
On Tue, 22 Jan 2008, Bill wrote:

We have 3^1000 = sum(a_i 10^i) where a_i are the digits of 3^1000
expressed in decimal system.

let 's say c=sum(a_i) the sum over all digits.
the value of c modulo 3 equals 0 and it's easily solved.

But what 's about c modulo 7 ?

Let dj = a_j.

3^1000 = sum_j dj.10^j = 3 * sum_j dj (mod 7)

3^6 = 1 (mod 7)
3^1000 = (3^6)^166 * 3^4 = 3 * 3^3 = 3 * 27 = -3 (mod 7)

sum_j dj = -1 = 6 (mod 7)

Mathematica 6.0 for Mac OS X x86 (64-bit)
Copyright 1988-2007 Wolfram Research, Inc.

In[1]:= Mod[Plus @@ IntegerDigits[3^1000], 7]

Out[1]= 0


--
Dave Seaman
Oral Arguments in Mumia Abu-Jamal Case heard May 17
U.S. Court of Appeals, Third Circuit
<http://www.abu-jamal-news.com/>
.



Relevant Pages

  • Re: problem of arithmetic modulo
    ... Subject: problem of arithmetic modulo ... then add up its digits, giving c=2142, then computing the desired values: ... I trust the conjecture is a joke. ... I would suggest the OP calculate the sum mod 7 of the decimal digits ...
    (sci.math)
  • Re: OT: 5th grade homework help
    ... My son came home with this one: ... Using the numbers 1 to 9 inclusive, construct a sum that equals 1,000,000. ... Especially since using all 9 digits was a requirement. ...
    (rec.gambling.poker)
  • Re: problem of arithmetic modulo
    ... let 's say c=sum(a_i) the sum over all digits. ... the value of c modulo 3 equals 0 and it's easily solved. ...
    (sci.math)
  • problem of arithmetic modulo
    ... let 's say c=sum(a_i) the sum over all digits. ... the value of c modulo 3 equals 0 and it's easily solved. ...
    (sci.math)
  • Re: exploring the use of manual encryption of passwords (newbie)
    ... the essence is the remaining string of digits. ... ah, but I cannot handle modulo 36 arithmetics in my head, so I limit my ... the more reason to keep your notebook ... But private key and passwords are maybe 10-15 digits long, ...
    (sci.crypt)