Karim Belabas on Tue, 30 Jan 2024 17:40:30 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: eval bernpol
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Tue, 30 Jan 2024 17:40:08 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1706632810; c=relaxed/relaxed; bh=z06t64avZHoM90+s8W11iZSJ+BdQXmVBvuJDRNJvx+E=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=R4j49zTNgttd4y1pJBPKNexXDI6wSV2rIfryRF8PF2OAg2I0DB5/EVqSnnv2jZ5NEkEIveJdCj7PwXA5m/16obPqueAsZcC1+2YpbUSaeO42/5/y8iIJogMkiYKlsq7uR46nPnE35JnlGTfJUH8Ob8/skhbTsV74FfUmQAr7MYl/uuWiYkyP9nFQaRhY2aGDrJToD2ypJkl2MZyDP9n6P9nmM0jAmPBMi3KjsVP6xNaN3IsmwYs98E3xZE9a9MuGIDlQz1x/nEBNUEqKqTN31JvL0xMcZz/5kPux2wgsY4nijRyhB5WjiX+9GUzK3pzGsVS+dJw+XKH3mSbyxnk95Kvzd50kgX9ZUXCx8s5ZcVoPIZmjZet4guer1knTQusYifLfgpxVsTbpujMfz/fwV1bPgFdasxOMNmIUCusSWMkvwZhVdFCg4TAmy5Badt3CPn1jlvepO7Yw7W/vbTBIWgskOELIIGR6pH/cEumiEbsGmvZovMMhS6xfLv5MWHvgg2o9e/QhHuK49uz9NVQOf+/EQhWXCnqmKvAqav98K6yFPLDSDjoPJ0Q4YO58LASkVDfPR7/dooWn+MhPQKd/eV9z5tgVrqu1oPtU8LvX3EFjvfshA0GA1jVCjkpFtsNrjesGWytMtmwrYR0GRkQMznbC2o2HoLlcqqvM5nEfeRE=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1706632810; cv=none; b=e3jYl/zr3V7hAIiV2tvETitIrtYJhn62krQscXx9U3Zxhl6T8DT2biNIUh6D/bVMWNgpuPrZW8HMAMU5CbpvUVBYM7vjjtLTYouA97PoRZLnNQFvbKcSU8qLtMLFetVysvb/AgT7MGB44vwzSTy+yI8JUoS7/cEHML1WlcCf4SUf2myjvzRAtiWHvJPvhXyKr8LLNLE78m3Xeq9yL1kY92+L/zHyCBN6lEHQT4Oq5eYKOzf4OVYctQ9OggcLoQeeMSu/aDDypvD93XFAeIJ2wNcs5dLQ+MxghxhvWZaHtMJ64faX6hGrpDpYFX7cyEtslKQ3qBFM2WU5CNjhO2UbaAckV06LdiuLy/UJRuGdO6T52DwkqT1XBEoWPQzDNUgziEdOlUWqW7tug/0ZINuUldjMZ0/klLFiheFqCsdXGKovhqcbXwPcEVGcZkHTTPqUB/0KbCXlajuaha4Yq0oFFAi4b9YWY1AN7YkpMH5ZOnGbMJtsJkBXry2TCLMojHIR9+Clj2zGhECGV79+lZP412RmmiDUJFC/xBCu87xGT5qVBq8caktyixRBjYHn+H1kNufUkVIoPpeEz4EV25bY1xwmXRlHbgeWLun4rtNig6AIFLemRkny0pxAzqz9yj2fbQZ8hqN+88aQpL70hBYBA4yZ5G1pNmIzBKBgcR7EM9k=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Tue, 30 Jan 2024 17:40:30 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1706632810; bh=z06t64avZHoM90+s8W11iZSJ+BdQXmVBvuJDRNJvx+E=; h=Date:From:To:Subject:References:In-Reply-To:From; b=PngR0UfSdtYP5dJbqiJd720c1HFn4jeTcG5DTOHmmYFaWRr/I58/h1uwdLU+33ud3 VWl5UG7ldXHtZiMHUkU1uaYtXFc9wlbzmbXv7nSmer1UisdgQZa4zP/MlZEtS3TINU +DNIjLisy1wURGLuhxrazIGIbSh/LqJiLeKocrzgGgpSzIrvoTMcxKcs9opNkmAu2K Mbq/ot9Wm26232J0BTinxps5F5EGcO2uN0pxOkN0JK2dz6yD6ZnDA9osBKE5Q29iku /HoGNm92gXc6Qa+A7ipbFpb9KIFUJyo29GFpuf/Y9YKNfOdHoPoFvR9KQz+J7uca5N hG7FyVl/jKIjC8BLrbt/jtVYxGjhoLe2rqUDY38enMofRw1U1pOz2UZluLBit7+U7Y n+QdKht0CFOMOIKhray9+FbGp/B4Q2eqOmjd0otXz/lHiL6WOA3mBy5ZYyGfjGW08k BxOtZYgmZ1PZht9DRSzG+hdVULyNpRxz1TQpgYkbuF7DYp2pXx0tAv6YXvZ4HJSyZx UEa/ztTDJzq9J1IjVRHowD+T1RPMp3uDf3sYzCuTwaCSJK6rttqLHOGOlRJ+Wo8Oai OjAtewQZcjEpANuvIJ1c8xSIgSCR2vCgXIoOA9v45iHR7Ixa0AhA9hd6XnUdxK/TWv dHGxHEd18fKQ7D3AE6aUNSYI=
- In-reply-to: <ZbkdBrqzM92c4bes@math.u-bordeaux.fr>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <6350fd81-1d55-4be7-a07e-72109e5a1d7c@isolution.nl> <9b308f0d-521e-4064-b435-ec6cbc06175a@normalesup.org> <ZbkdBrqzM92c4bes@math.u-bordeaux.fr>
* Karim Belabas [2024-01-30 17:00]:
> * Aurel Page [2024-01-30 13:04]:
> > Dear Ruud,
> >
> > You can directly compute the evaluated Bernoulli polynomial:
> >
> > A285068(n) = denominator(3^n * bernpol(n,1/3));
> >
> > You can also revert the polynomial instead of evaluating at a rational:
> >
> > A285068b(n) = denominator(subst(Polrev(Vec(bernpol(n))),'x,3));
>
> Slightly simpler:
>
> A285068c(n) = denominator(subst(polrecip(bernpol(n)), 'x, 3));
And slightly more efficient
A285068d(n) =
{ my(B = bernpol(n), D = denominator(B, 1));
denominator(subst(polrecip(B * D), 'x, 3) / D);
}
(N.B. Clausen-von Staudt theorem [eventually] gives an exact formula for D,
cf A144845.)
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/