Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Well, the handwriting is on the floor. -- Joe E. Lewis


interests / rec.puzzles / Re: [Powers of 2] (mod N) -- puzzles

SubjectAuthor
* [Powers of 2] (mod N) -- puzzleshenh...@gmail.com
+* Re: [Powers of 2] (mod N) -- puzzlesPhil Carmody
|`- Re: [Powers of 2] (mod N) -- puzzleshenh...@gmail.com
`- Re: [Powers of 2] (mod N) -- puzzlesGareth Taylor

1
[Powers of 2] (mod N) -- puzzles

<2993bdc7-2af6-4bdc-be83-bf4eae529600n@googlegroups.com>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=148&group=rec.puzzles#148

  copy link   Newsgroups: rec.puzzles
X-Received: by 2002:a05:6214:528b:b0:467:d600:76f4 with SMTP id kj11-20020a056214528b00b00467d60076f4mr38789605qvb.131.1655085104664;
Sun, 12 Jun 2022 18:51:44 -0700 (PDT)
X-Received: by 2002:ac8:5e4c:0:b0:2f3:c50e:53a6 with SMTP id
i12-20020ac85e4c000000b002f3c50e53a6mr44937917qtx.499.1655085104436; Sun, 12
Jun 2022 18:51:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.puzzles
Date: Sun, 12 Jun 2022 18:51:44 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:648:8600:9ae0:0:0:0:2071;
posting-account=YjTkGAoAAAA4_fbAISfvtIqrYbghMeBx
NNTP-Posting-Host: 2601:648:8600:9ae0:0:0:0:2071
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2993bdc7-2af6-4bdc-be83-bf4eae529600n@googlegroups.com>
Subject: [Powers of 2] (mod N) -- puzzles
From: henha...@gmail.com (henh...@gmail.com)
Injection-Date: Mon, 13 Jun 2022 01:51:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: henh...@gmail.com - Mon, 13 Jun 2022 01:51 UTC

At least one of these is a Nice puzzle.

2 ^ 100 --- What is it mod 2016 ?

2 ^ 2022 --- What are the least 2 digits?
(or ... What is it mod 100 ?)

__________________________

https://www.youtube.com/watch?v=PQcwX5yz5No
Love Theme from Blade Runner Vangelis Cover (with Guitar)

Blade Runner Blues https://www.youtube.com/watch?v=RScZrvTebeA

Tao of Love https://www.youtube.com/watch?v=yNtX2T49TDI

https://www.youtube.com/watch?v=ULJ2s4pdK9E

Re: [Powers of 2] (mod N) -- puzzles

<871qvog3rb.fsf@zotaspaz.fatphil.org>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=154&group=rec.puzzles#154

  copy link   Newsgroups: rec.puzzles
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED.85.253.101.128.cable.starman.ee!not-for-mail
From: pc+use...@asdf.org (Phil Carmody)
Newsgroups: rec.puzzles
Subject: Re: [Powers of 2] (mod N) -- puzzles
Date: Thu, 16 Jun 2022 16:02:48 +0300
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <871qvog3rb.fsf@zotaspaz.fatphil.org>
References: <2993bdc7-2af6-4bdc-be83-bf4eae529600n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="85.253.101.128.cable.starman.ee:85.253.101.128";
logging-data="2108550"; mail-complaints-to="abuse@eternal-september.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock: sha1:YVv+XOjNiSNsmst1+T8pzaKw3gs=
 by: Phil Carmody - Thu, 16 Jun 2022 13:02 UTC

"henh...@gmail.com" <henhanna@gmail.com> writes:
> At least one of these is a Nice puzzle.

Different shortcuts make them very easy to do manually.

> 2 ^ 100 --- What is it mod 2016 ?

2016 = 2*1008 = 4*504 = 8*252 = 16*126 = 32*63
so we only need to calculate 2^100 mod 63, the mod 32 bit's easy
2^6=64 == 1, so 2^96 == 1
2^100 == 2^4 * 2^96 == 2^4 == 16 (mod 63)
16 != 0 mod 32 so add a multiple of 63 to correct that
63 == -1 (mod 32), so we want 16+16*63 = 16*64 = 1024
2^100 == 1024 (mod 2016)

> 2 ^ 2022 --- What are the least 2 digits?
> (or ... What is it mod 100 ?)

powers of 2 mod 25 go:
1, 2, 4, 8, 16, 7, 14, 3, 6, 12, -1, ... it's a primitive root, period 20
2022 = 101*20+2 so we want 2^2 == 4 (mod 25)
conveniently, 4 == 0 mod 4
so 2^2022 == 4 mod (100)

GP verification once the manual graft's done:
? Mod(2,2016)^100
Mod(1024, 2016)
? Mod(2,100)^2022
Mod(4, 100)

Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/

Re: [Powers of 2] (mod N) -- puzzles

<aYA*H4SQy@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=155&group=rec.puzzles#155

  copy link   Newsgroups: rec.puzzles
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED!not-for-mail
From: gtay...@chiark.greenend.org.uk (Gareth Taylor)
Newsgroups: rec.puzzles
Subject: Re: [Powers of 2] (mod N) -- puzzles
Date: 16 Jun 2022 15:04:52 +0100 (BST)
Organization: SGO
Lines: 18
Message-ID: <aYA*H4SQy@news.chiark.greenend.org.uk>
References: <2993bdc7-2af6-4bdc-be83-bf4eae529600n@googlegroups.com>
NNTP-Posting-Host: chiark.greenend.org.uk
X-Trace: chiark.greenend.org.uk 1655388294 27425 212.13.197.229 (16 Jun 2022 14:04:54 GMT)
X-Complaints-To: abuse@chiark.greenend.org.uk
NNTP-Posting-Date: Thu, 16 Jun 2022 14:04:54 +0000 (UTC)
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gtaylor@chiark.greenend.org.uk ([212.13.197.229])
 by: Gareth Taylor - Thu, 16 Jun 2022 14:04 UTC

In article <2993bdc7-2af6-4bdc-be83-bf4eae529600n@googlegroups.com>,
henh...@gmail.com <henhanna@gmail.com> wrote:

> 2 ^ 100 --- What is it mod 2016 ?

Use that 2016 = 2^5 x 63.

And 2^6 == 1 mod 63, so 2^90 == 1 mod 63, so 2^100 == 2^10 mod 2016.

Slightly differently, notice that 2048 = 2016 + 32. So 2^11 == 2^5 mod
2016, so we can throw away 2s in sixes as long as we have at least
eleven left. I.e., 2^100 == (2^6)^15 x 2^10 == 2^10 == 1024 mod 2016.

> 2 ^ 2022 --- What are the least 2 digits?

phi(25) = 20, so 2^2020 == 1 mod 25, so 2^2022 == 04 mod 100.

Gareth

Re: [Powers of 2] (mod N) -- puzzles

<d08310a6-9e6c-48ac-984e-2cb912ebb25fn@googlegroups.com>

  copy mid

https://www.novabbs.com/interests/article-flat.php?id=157&group=rec.puzzles#157

  copy link   Newsgroups: rec.puzzles
X-Received: by 2002:a05:600c:1547:b0:39c:804c:dc23 with SMTP id f7-20020a05600c154700b0039c804cdc23mr6624948wmg.23.1655408039169;
Thu, 16 Jun 2022 12:33:59 -0700 (PDT)
X-Received: by 2002:ac8:5a8d:0:b0:306:723a:2763 with SMTP id
c13-20020ac85a8d000000b00306723a2763mr5432860qtc.198.1655408038988; Thu, 16
Jun 2022 12:33:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.puzzles
Date: Thu, 16 Jun 2022 12:33:58 -0700 (PDT)
In-Reply-To: <871qvog3rb.fsf@zotaspaz.fatphil.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:648:8601:8b60:0:0:0:4e67;
posting-account=YjTkGAoAAAA4_fbAISfvtIqrYbghMeBx
NNTP-Posting-Host: 2601:648:8601:8b60:0:0:0:4e67
References: <2993bdc7-2af6-4bdc-be83-bf4eae529600n@googlegroups.com> <871qvog3rb.fsf@zotaspaz.fatphil.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d08310a6-9e6c-48ac-984e-2cb912ebb25fn@googlegroups.com>
Subject: Re: [Powers of 2] (mod N) -- puzzles
From: henha...@gmail.com (henh...@gmail.com)
Injection-Date: Thu, 16 Jun 2022 19:33:59 +0000
Content-Type: text/plain; charset="UTF-8"
 by: henh...@gmail.com - Thu, 16 Jun 2022 19:33 UTC

On Thursday, June 16, 2022 at 6:18:58 AM UTC-7, Phil Carmody wrote:
> "henh...@gmail.com" <henh...@gmail.com> writes:
> > At least one of these is a Nice puzzle.
> Different shortcuts make them very easy to do manually.
> > 2 ^ 100 --- What is it mod 2016 ?
> 2016 = 2*1008 = 4*504 = 8*252 = 16*126 = 32*63
> so we only need to calculate 2^100 mod 63, the mod 32 bit's easy
> 2^6=64 == 1, so 2^96 == 1
> 2^100 == 2^4 * 2^96 == 2^4 == 16 (mod 63)
> 16 != 0 mod 32 so add a multiple of 63 to correct that
> 63 == -1 (mod 32), so we want 16+16*63 = 16*64 = 1024
> 2^100 == 1024 (mod 2016)
> > 2 ^ 2022 --- What are the least 2 digits?
> > (or ... What is it mod 100 ?)
> powers of 2 mod 25 go:
> 1, 2, 4, 8, 16, 7, 14, 3, 6, 12, -1, ... it's a primitive root, period 20
> 2022 = 101*20+2 so we want 2^2 == 4 (mod 25)
> conveniently, 4 == 0 mod 4
> so 2^2022 == 4 mod (100)
>
> GP verification once the manual graft's done:
> ? Mod(2,2016)^100
> Mod(1024, 2016)
> ? Mod(2,100)^2022
> Mod(4, 100)
>
> Phil

thanks! is GP a computer language? i can't find it on the Net
https://en.wikipedia.org/wiki/GP

Are there some well-known (or simpler) problems of this kind ?

> > 2 ^ 100 --- What is it mod 2016 ?

> > 2 ^ 2022 --- What are the least 2 digits?
> > (or ... What is it mod 100 ?)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor