OFFSET
1,1
COMMENTS
See A195500 for a discussion and references.
LINKS
Colin Barker, Table of n, a(n) for n = 1..797
Index entries for linear recurrences with constant coefficients, signature (17,17,-1).
FORMULA
From Colin Barker, Jun 04 2015: (Start)
G.f.: 8*x / ((x+1)*(x^2-18*x+1)).
a(n) = 17*a(n-1) + 17*a(n-2) - a(n-3). (End)
a(n) = (-4*(-1)^n - (-2+sqrt(5))*(9+4*sqrt(5))^(-n) + (2+sqrt(5))*(9+4*sqrt(5))^n)/10. - Colin Barker, Mar 04 2016
a(n) is the numerator of continued fraction [4, ..., 4, 8, 4, ..., 4] with (n-1) 4's before and after the middle 8. - Greg Dresden and Hexuan Wang, Aug 30 2021
MATHEMATICA
r = 2; z = 32;
p[{f_, n_}] := (#1[[2]]/#1[[
1]] &)[({2 #1[[1]] #1[[2]], #1[[1]]^2 - #1[[
2]]^2} &)[({Numerator[#1], Denominator[#1]} &)[
Array[FromContinuedFraction[
ContinuedFraction[(#1 + Sqrt[1 + #1^2] &)[f], #1]] &, {n}]]]];
{a, b} = ({Denominator[#1], Numerator[#1]} &)[
Sqrt[a^2 + b^2] (* A007805 *)
(* Peter J. C. Moses, Sep 02 2011 *)
PROG
(PARI) Vec(8*x/((x+1)*(x^2-18*x+1)) + O(x^50)) \\ Colin Barker, Jun 04 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 22 2011
STATUS
approved