cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A192427 Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined below in Comments.

This page as a plain text file.
%I A192427 #13 Jul 13 2023 08:37:40
%S A192427 0,1,1,8,11,45,80,251,517,1432,3195,8317,19360,48827,116213,288360,
%T A192427 694331,1708397,4138480,10138363,24636645,60217912,146570491,
%U A192427 357833309,871703360,2126857275,5183425493,12642971912,30819571387,75160150861
%N A192427 Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined below in Comments.
%C A192427 The polynomial p(n,x) is defined by ((x+d)/2)^n + ((x-d)/2)^n, where d = sqrt(x^2+8). For an introduction to reductions of polynomials by substitutions such as x^2 -> x+1, see A192232.
%H A192427 G. C. Greubel, <a href="/A192427/b192427.txt">Table of n, a(n) for n = 0..1000</a>
%H A192427 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (1,5,-2,-4).
%F A192427 From _Colin Barker_, May 12 2014: (Start)
%F A192427 a(n) = a(n-1) + 5*a(n-2) - 2*a(n-3) - 4*a(n-4).
%F A192427 G.f.: x*(1+2*x^2)/(1-x-5*x^2+2*x^3+4*x^4). (End)
%F A192427 a(n) = Sum_{k=0..n} T(n, k)*Fibonacci(k), where T(n, k) = [x^k] ((x + sqrt(x^2+8))^n + (x - sqrt(x^2+8))^n)/2^n. - _G. C. Greubel_, Jul 13 2023
%e A192427 The first five polynomials p(n,x) and their reductions are as follows:
%e A192427   p(0,x) = 2 -> 2
%e A192427   p(1,x) = x -> x
%e A192427   p(2,x) = 4 + x^2 -> 5 + x
%e A192427   p(3,x) = 6*x + x^3 -> 1 + 8*x
%e A192427   p(4,x) = 8 + 8*x^2 + x^4 -> 18 + 11*x.
%e A192427 From these, read A192426 = (2, 0, 5, 1, 18, ...) and a(n) = (0, 1, 1, 8, 11, ...).
%t A192427 (See A192426.)
%t A192427 LinearRecurrence[{1,5,-2,-4}, {0,1,1,8}, 40] (* _G. C. Greubel_, Jul 13 2023 *)
%o A192427 (Magma) R<x>:=PowerSeriesRing(Integers(), 40); [0] cat Coefficients(R!( x*(1+2*x^2)/(1-x-5*x^2+2*x^3+4*x^4) )); // _G. C. Greubel_, Jul 13 2023
%o A192427 (SageMath)
%o A192427 @CachedFunction
%o A192427 def a(n): # a = A192427
%o A192427     if (n<4): return (0,1,1,8)[n]
%o A192427     else: return a(n-1) + 5*a(n-2) - 2*a(n-3) - 4*a(n-4)
%o A192427 [a(n) for n in range(41)] # _G. C. Greubel_, Jul 13 2023
%Y A192427 Cf. A000045, A192232, A192426.
%K A192427 nonn,easy
%O A192427 0,4
%A A192427 _Clark Kimberling_, Jun 30 2011
%E A192427 Typo in name corrected by _G. C. Greubel_, Jul 13 2023