Ruud H.G. van Tol on Sat, 07 Jan 2023 11:45:02 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: bnrL1 output ordering
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: bnrL1 output ordering
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Sat, 7 Jan 2023 11:43:49 +0100
- Delivery-date: Sat, 07 Jan 2023 11:45:02 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1673088231; bh=Nt1b/9ns9tYmtR17oeYKWD/r6/t0VX60bP5pIIRCcdc=; h=Date:Subject:To:References:From:In-Reply-To:From; b=FX/9Q4ZWKSFmHmmJtnogGIFYdBWv2ktsNnxPQeEtbOqZauBxWg5H2t1TCIkwzqJ4D F63qGC4BIlHqg3d0ldLryIltvvj9hJh2xtvHnH0nXENbtCF3vqU2URXSsbQDwctDsD tV3+fHP/l7SfOBC+pTeVx9PxH/iTw8Kk+9TMp6VZrpHN9f/ao5ialmMSmdp8WApmKR I5KdmfiSOtW8EexscNPg2O15+Lg/r1kw4Xvy5OiV65Iq61KNr/KIOXBOXImbGn0Ytv IARfmNIU16rGXmMiwXyEhLwZtCze4EcdsMZUpNHvYscXXXmgXGAhLD0F2erAcdtNYm 93HHzMy3dEW0g==
- In-reply-to: <Y7iJo9ucX1CfFY4p@seventeen>
- References: <CAL1WnZoQWXZxv90fse_PfS-Vip_iMs+s_UpArx-3LjjokQ8ZEQ@mail.gmail.com> <Y7ht9fRZoK3VWgF+@seventeen> <CAL1WnZo+99rwB1jKDWwncVQjbfGZJ7ejzW9Sq-8DSdgfCrZijQ@mail.gmail.com> <Y7iJo9ucX1CfFY4p@seventeen>
On 2023-01-06 21:50, Bill Allombert wrote:
charall(c)=
{
my(L=List());
forvec(v=vector(#c,i,[0,c[i]-1]),listput(L,v));
Vec(L);
}
Side-path:
https://en.wikipedia.org/wiki/Factorial_number_system
? [fromdigits(v)|v<-charall([3!,2!,1!])]
%=[0, 10, 100, 110, 200, 210, 300, 310, 400, 410, 500, 510]
? {
my
( d62= Vec("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxyz")
, d(v)= strjoin([d62[c+1]|c<-v])
);
[ d(v) | v <- charall([4!,3!,2!,1!]) ]
}
%=["0000", "0010", "0100", "0110", "0200", [...]
"M500", "M510", "N000", "N010", "N100", "N110", "N200",
"N210", "N300", "N310", "N400", "N410", "N500", "N510"]
-- Ruud