OFFSET
0,3
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
a(n) = 1/10*(5-sqrt(5))*Gamma(n+2+sqrt(5))/Gamma(2+sqrt(5)) + 1/10*sin(Pi*(3+sqrt(5)))*(1+sqrt(5))*Gamma(1+sqrt(5))*Gamma(n+2-sqrt(5))/(Pi*(sqrt(5)-1)). - Vaclav Kotesovec, Oct 26 2012
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_]:= (2*x + 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 *)
(* Additional programs *)
With[{s = Sqrt[5]}, Table[FullSimplify[(s*(s-1)*Gamma[n+2+s]/Gamma[s+2] + Sin[Pi*(s+3)]*Gamma[s+2]*Gamma[n+2-s]/(Pi*(s-1)))/10], {n, 0, 20}]] (* G. C. Greubel, Jul 25 2019 *)
PROG
(PARI) default(realprecision, 100); vector(20, n, n--; s=sqrt(5); round((s^2-s)*gamma(n+2+s)/gamma(s+2) + sin(Pi*(s+3))*gamma(s+2)* gamma(n+2-s)/(Pi*(s-1)))/10 ) \\ G. C. Greubel, Jul 25 2019
(Magma) SetDefaultRealField(RealField(100)); R:= RealField(); s:=Sqrt(5); [Round(s*(s-1)*Gamma(n+2+s)/Gamma(s+2) + Sin(Pi(R)*(s+3))*Gamma(s+2) *Gamma(n+2-s)/(Pi(R)*(s-1)))/10: n in [0..20]]; // G. C. Greubel, Jul 25 2019
(Sage) s=sqrt(5); [round(s*(s-1)*gamma(n+2+s)/gamma(s+2) + sin(pi*(s+3))* gamma(s+2)*gamma(n+2-s)/(pi*(s-1)))/10 for n in (0..20)] # G. C. Greubel, Jul 25 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jul 13 2011
STATUS
approved