Bill Allombert on Wed, 15 Jan 2025 22:43:36 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
script for linear recurrences with polynomial coefficients
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: script for linear recurrences with polynomial coefficients
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Wed, 15 Jan 2025 22:43:32 +0100
- Delivery-date: Wed, 15 Jan 2025 22:43:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.u-bordeaux.fr; s=2022; t=1736977414; bh=ZSt/E4nybjWMbrnWbDiBpNpO6AMqdGQPiE+rbI4hdfk=; h=Date:From:To:Subject:From; b=fFlPSb25/LL9krlb0Grds0wYP9bKHlcEcTOMsTXt+/i1X+hFQvfllXcX9YbPl95pr 1rMc9eOcGQkyD77yILGtnJkqNMTfECgmGrt6U78i2k/E3uS9rNe8z4finbOxL6NfAK WkG7S1zPdvKylcN4OoDGWiOXTvqPso5TOT/jgJDmoaV5BTUJRQFlaZIAS1kcnE6/nR mbvrXV4Jsmv9RcUDp1Oiii582O6zXEk/fIVjpxQFMh9TYBm+9YIGDKt6NDYu4I7Lm+ KI7/xuH3fEeUeuB8arRaCwMFnMaq4cXjkQdhiC2ceCdQjVPC+wJB3ZsvHdnxYXvJGq I1TQv/2jqMIw8BPFeYcnZKVMUIoLoDuFvj9V7/rNibcI9zGvfp224dFIUzbUakjpuz 6Ize+WPaPehKCAwTcV4fDk+0wh7qT4PrkhgZYWVjfTIVuP0xmINl3WtCHYTbvv6sWS 1qcZI/hk5xZ9SNFDLeRYDJHmgB4MJIcQweVOw3mzjZ1yVRRblkATUCBbmLDvTbDUnS FwZvb43ikhxTrff2S8kYKmd2PpVjGwkhAMsw3tXHWN+T9kB1puQ5Hlm5t59AaLEiJQ Cg9C+KB2tS2U6J6yi+Xv7RCeIIBKu05i0jRCcY2gPylIdiLjq4oSnizCHwRL4QB6el m/aFU8UT4Viw5AgExgmzcbh8=
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
Dear PARI users,
I have written a simple GP script to deal with linear recurrences with polynomial coefficients.
It is available here https://pari.math.u-bordeaux.fr/Scripts/rec.gp
This is preliminary work.
For example
R = [-2,(n-1)^3;-1,-(34*n^3-51*n^2+27*n-5);0,n^3]
is the relation
(n-1)^3*u_{n-2} -(34*n^3-51*n^2+27*n-5) * u_{n-1} + n^3*u_n
(-2 means u_{n-2}, etc.)
V=reccoefs(R,[0,6],30)
give 30 terms starting by 0,6
recfind allow to find the relations from the sequence:
? recfind(V,[-2,-1,0],3)
%7 = [[-2,x^3-3*x^2+3*x-1;-1,-34*x^3+51*x^2-27*x+5;0,x^3]]
reccheck allow to check if a sequence satisfies a given relation.
Cheers,
Bill