Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The church saves sinners, but science seeks to stop their manufacture. -- Elbert Hubbard


devel / comp.lang.prolog / Re: There is no Zero in Mathematics Digits Riddle

SubjectAuthor
* There is no Zero in Mathematics Digits RiddleMostowski Collapse
`- Re: There is no Zero in Mathematics Digits RiddleMostowski Collapse

1
There is no Zero in Mathematics Digits Riddle

<f95b8159-5f1b-43dd-bee9-b64a1df1f2f4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=924&group=comp.lang.prolog#924

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ad4:45e7:: with SMTP id q7mr32006530qvu.23.1632249619280;
Tue, 21 Sep 2021 11:40:19 -0700 (PDT)
X-Received: by 2002:a05:6902:1543:: with SMTP id r3mr41472113ybu.409.1632249619021;
Tue, 21 Sep 2021 11:40:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Tue, 21 Sep 2021 11:40:18 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f95b8159-5f1b-43dd-bee9-b64a1df1f2f4n@googlegroups.com>
Subject: There is no Zero in Mathematics Digits Riddle
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Tue, 21 Sep 2021 18:40:19 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 9
 by: Mostowski Collapse - Tue, 21 Sep 2021 18:40 UTC

Its nearly autumn. Time to refresh your Prolog or CLP(FD) skills.

This gives me:

?- X is 10^10//81-1.
X = 123456789.

So the expression delivers a number with all non-zero
digits. Is there another formula that delivers all digits,
possibly permuted, where the formula itself has no zero in it?

Re: There is no Zero in Mathematics Digits Riddle

<10fadeac-50c8-4abc-b934-dd5830206e94n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=925&group=comp.lang.prolog#925

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ac8:71cd:: with SMTP id i13mr12591315qtp.159.1632252099784;
Tue, 21 Sep 2021 12:21:39 -0700 (PDT)
X-Received: by 2002:a05:6902:100c:: with SMTP id w12mr40658973ybt.47.1632252099623;
Tue, 21 Sep 2021 12:21:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Tue, 21 Sep 2021 12:21:39 -0700 (PDT)
In-Reply-To: <f95b8159-5f1b-43dd-bee9-b64a1df1f2f4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <f95b8159-5f1b-43dd-bee9-b64a1df1f2f4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <10fadeac-50c8-4abc-b934-dd5830206e94n@googlegroups.com>
Subject: Re: There is no Zero in Mathematics Digits Riddle
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Tue, 21 Sep 2021 19:21:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 40
 by: Mostowski Collapse - Tue, 21 Sep 2021 19:21 UTC

SWI-Prolog gives me:

?- use_module(library(clpfd)).
true.

?- [D1,D2,D3,D4,D5,D6,D7,D8,D9] ins 1..9,
[A,B,C] ins 2..9\/11..15,
A^B*C #= (((((((D1*10+D2)*10+D3)*10+D4)*10+D5)*10+D6)*10+D7)*10+D8)*10+D9,
all_different([D1,D2,D3,D4,D5,D6,D7,D8,D9]),
label([A,B,C,D1,D2,D3,D4,D5,D6,D7,D8,D9]).
D1 = C, C = 9,
D2 = 4,
D3 = 8,
D4 = B, B = 7,
D5 = 2,
D6 = 1,
D7 = 5,
D8 = 3,
D9 = 6,
N = 948721536,
A = 14 ;
false.

?- X is 14^7*9.
X = 948721536.

LoL

Mostowski Collapse schrieb am Dienstag, 21. September 2021 um 20:40:19 UTC+2:
> Its nearly autumn. Time to refresh your Prolog or CLP(FD) skills.
>
> This gives me:
>
> ?- X is 10^10//81-1.
> X = 123456789.
>
> So the expression delivers a number with all non-zero
> digits. Is there another formula that delivers all digits,
> possibly permuted, where the formula itself has no zero in it?


devel / comp.lang.prolog / Re: There is no Zero in Mathematics Digits Riddle

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor