OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,14,0,-1).
FORMULA
k(1)=5, k(2)=11, k(3)=14*k(1)-k(2), k(4)=14*k(2)-k(1) then k(n)=14*k(n-2)-k(n-4).
G.f.: -x*(x-1)*(5*x^2+16*x+5) / ((x^2-4*x+1)*(x^2+4*x+1)). - Corrected by Colin Barker, Apr 16 2014
EXAMPLE
5^2=12*1^2+13
11^2=12*3^2+13
59^2=12*17^2+13
149^2=12*43^2+13
MATHEMATICA
LinearRecurrence[{0, 14, 0, -1}, {5, 11, 59, 149}, 40] (* Harvey P. Dale, Oct 21 2021 *)
PROG
(PARI) Vec(-x*(x-1)*(5*x^2+16*x+5)/((x^2-4*x+1)*(x^2+4*x+1)) + O(x^100)) \\ Colin Barker, Apr 16 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Pierre CAMI, Apr 28 2005
EXTENSIONS
Edited by Ralf Stephan, Jun 01 2007
STATUS
approved