%I #15 Sep 08 2022 08:46:00
%S 2,23,191,1535,12287,98303,786431,6291455,50331647,402653183,
%T 3221225471,25769803775,206158430207,1649267441663,13194139533311,
%U 105553116266495,844424930131967,6755399441055743,54043195528445951
%N a(n) = 3*8^n-1.
%H Vincenzo Librandi, <a href="/A198851/b198851.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (9,-8).
%F a(n) = 8*a(n-1)+7. a(n) = 9*a(n-1)-8*a(n-2) for n > 1.
%F G.f.: (5*x+2)/(8*x^2-9*x+1) [_Harvey P. Dale_, Dec 07 2011]
%t 3*8^Range[0,30]-1 (* or *) LinearRecurrence[{9,-8},{2,23},30] (* _Harvey P. Dale_, Dec 07 2011 *)
%o (Magma) [3*8^n-1: n in [0..30]]
%K nonn,easy
%O 0,1
%A _Vincenzo Librandi_, Oct 31 2011