OFFSET
0,2
COMMENTS
For an introduction to reductions of polynomials by substitutions such as x^2 -> x+1, see A192232.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..445
FORMULA
Conjecture: a(n) +(-2*n-1)*a(n-1) +(n^2-5)*a(n-2)=0. - R. J. Mathar, May 08 2014
EXAMPLE
MATHEMATICA
(* First program *)
q = x^2; s = x + 1; z = 26;
p[0, x]:= 1;
p[n_, x_]:= (2x+n)*p[n-1, x];
Table[Expand[p[n, x]], {n, 0, 7}]
reduce[{p1_, q_, s_, x_}]:= FixedPoint[(s PolynomialQuotient @@ #1 + PolynomialRemainder @@ #1 &)[{#1, q, x}] &, p1]
t = Table[reduce[{p[n, x], q, s, x}], {n, 0, z}];
u1 = Table[Coefficient[Part[t, n], x, 0], {n, 1, z}] (* A192941 *)
u2 = Table[Coefficient[Part[t, n], x, 1], {n, 1, z}] (* A192942 *)
u2/2 (* A192950 *)
(* Second program *)
With[{s = Sqrt[5]}, Table[FullSimplify[(s*Gamma[n+2+s]/Gamma[s+2] - Sin[Pi*(s+3)]*Gamma[s+1]*Gamma[n+2-s]/(Pi*(s-1)))/5], {n, 0, 20}]] (* G. C. Greubel, Jul 26 2019 *)
PROG
(PARI) default(realprecision, 100); vector(20, n, n--; s=sqrt(5); round(s*gamma(n+2+s)/gamma(s+2) - sin(Pi*(s+3))*gamma(s+1)*gamma(n+2-s)/(Pi*(s-1)))/5 ) \\ G. C. Greubel, Jul 25 2019
(Magma) SetDefaultRealField(RealField(100)); R:= RealField(); s:=Sqrt(5); [Round(s*Gamma(n+2+s)/Gamma(s+2) - Sin(Pi(R)*(s+3))*Gamma(s+1) *Gamma(n+2-s)/(Pi(R)*(s-1)))/5: n in [0..20]]; // G. C. Greubel, Jul 25 2019
(Sage) s=sqrt(5); [round(s*gamma(n+2+s)/gamma(s+2) - sin(pi*(s+3))* gamma(s+1)*gamma(n+2-s)/(pi*(s-1)))/5 for n in (0..20)] # G. C. Greubel, Jul 25 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jul 13 2011
STATUS
approved