%I #26 Feb 20 2017 06:18:36
%S 0,5,6,12,19,32,52,85,138,224,363,588,952,1541,2494,4036,6531,10568,
%T 17100,27669,44770,72440,117211,189652,306864,496517,803382,1299900,
%U 2103283,3403184,5506468,8909653,14416122,23325776,37741899,61067676,98809576,159877253
%N a(n) = a(n-1) + a(n-2) + 1 for n>1, a(0)=0, a(1)=5.
%H Vincenzo Librandi, <a href="/A022310/b022310.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (2,0,-1).
%F From _R. J. Mathar_, Apr 07 2011: (Start)
%F G.f.: -x*(-5 + 4*x)/((x - 1)*(x^2 + x - 1)).
%F a(n) = A022096(n) - 1. (End)
%F a(n) = 6*F(n) + F(n-1) - 1, where F = A000045. - _Bruno Berselli_, Feb 20 2017
%F From _Colin Barker_, Feb 20 2017: (Start)
%F a(n) = -1 + (2^(-1-n)*((1-t)^n*(-11+t) + (1+t)^n*(11+t))) / t where t=sqrt(5).
%F a(n) = 2*a(n-1) - a(n-3) for n>2. (End)
%t LinearRecurrence[{2, 0, -1}, {0, 5, 6}, 60] (* _Vladimir Joseph Stephan Orlovsky_, Feb 11 2012 *)
%o (PARI) concat(0, Vec(x*(5-4*x) / ((1-x)*(1-x-x^2)) + O(x^50))) \\ _Colin Barker_, Feb 20 2017
%Y Cf. A000045, A022096.
%K nonn,easy
%O 0,2
%A _N. J. A. Sloane_