Kurt Foster on Mon, 23 Jul 2018 14:50:34 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: generating function solution to poly
|
- To: Kevin Ryde <user42_kevin@yahoo.com.au>, Pari Users <pari-users@pari.math.u-bordeaux.fr>
- Subject: Re: generating function solution to poly
- From: Kurt Foster <drsardonicus@earthlink.net>
- Date: Mon, 23 Jul 2018 06:50:29 -0600
- Delivery-date: Mon, 23 Jul 2018 14:50:34 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=earthlink.net; s=dk12062016; t=1532350427; bh=ImU1LKi/+1qXE0vFuPn06Bqi25DKburinc3A 3M6iLvg=; h=Received:Message-Id:From:To:In-Reply-To:Content-Type: Content-Transfer-Encoding:Mime-Version:Subject:Date:References: X-Mailer:X-ELNK-Trace:X-Originating-IP; b=nKtDDheY3ucBn6ud743GVFzO U/+uq8pVUlkmgTGDRDkJptiRlVtBgb7yU0eY2FkCvPjQRfLnxVjzr/y8wvUvCDYzpJB wqn30D2xFPn6EKqB0tg7DsLywaLDkL1tMZqxbctgiwJWpwCYHp2S7hODl8n7oDu/mbv OVyQW0KyLsEPBo+ds5vkCi8+xkVJnTvxa98T97s3d0hFNZwGTUvXmquRDvmo+sAB2By 1ne5K1tQJsnHgmkd9Pjlix4jEXZX1aA+sMTwOI6SM/GgMx/ktKz9bKt7KQcX53s2lCC 3mT4PikVzbrBQf7C3hlzEzIkMXrHwW6ugvghGaYPGRKoYnAtFA==
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk12062016; d=earthlink.net; b=Rjd1Gy/KyG1VJYAed3F++lohjbZZ/76Yh+3p/m2oZi2RQTzhscqqgnJj9H4Osd6RIDcMTsEUP0pOLyWOm7iHcY2tngmBVzf3fMXyYp8QCt6Lt5W4WE3HFOrcaSZOthIZSz/WEir9ABD2qMP3O7JUTyQbQe4QW+ZiPgIbaLxpQ1yNrsfoi9H+iEjZyLfxS05QLuED/E/cbB3UY5aegzVVhSAiLVjENOdbAyyezgLeEFMsndyhe3nvTJshOZWmL3YafOy9c+5d2bjFDYBCBOJaHVIhuQszQlgWZMrUfYIqJOqDzahu09fiaucPZYbAXTrrpg2w/GUGZ1O0ed+xdXzXiA==; h=Received:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer:X-ELNK-Trace:X-Originating-IP;
- In-reply-to: <87fu0dgf09.fsf@blah.blah>
- References: <87fu0dgf09.fsf@blah.blah>
On Jul 21, 2018, at 2:38 AM, Kevin Ryde wrote:
I have a generating function (and more terms too)
g = x^2 + x^3 + x^4 + 3*x^5 + 6*x^6 + 12*x^7 + 29*x^8 + 67*x^9 +
O(x^10);
which satisfies a cubic
(1+x)*g^3 - 2*g^2 + (1-x+2*x^2)*g - x^2 == 0
Is there an easy or good way to have gp solve that for series g?
I know how to work upwards to get g term by term (after deciding
lowest
should be 0), but maybe gp already has it. I wondered only for
interest
or generality though, since this one comes from recurrences which are
easy to calculate. I attempted serreverse() without joy (change
variables to solve in x, but I may have confused myself).
On Jul 22, 2018, at 2:15 AM, Peter Pein wrote:
Hi Kevin,
I'm just curious: are you sure the coefficients in g are correct?
starting Bill Allombert's suggestion to iterate via Newton but
starting
with just X^2+O(X^3) gives another sequence for g and a difference
for
coeffs of x^7 and higher powers
? P=substvec((1+x)*g^3-2*g^2+(1+x+2*x^2)*g-x^2,[x,g],[X,y])
%1 = (X + 1)*y^3 - 2*y^2 + (2*X^2 + X + 1)*y - X^2
Different problem, different solution. Compare coefficients of y, 1-x
+2*x^2 and 2*X^2 + X + 1. Never mind the change of variable name or
order of terms. A minus sign has ben changed to a plus sign.
Take it from a holder of a Black Belt of transfinite degree in making
typos -- copy-paste is the way to go in transcribing algebraic
expressions.