login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(n) = 9^n - 7^n + 1.
15

%I #19 Aug 03 2024 17:03:29

%S 1,3,33,387,4161,42243,413793,3959427,37281921,347066883,3204309153,

%T 29403732867,268588249281,2444976817923,22198569382113,

%U 201143570584707,1819787258282241,16444551185679363,148466221699088673,1339452822487618947,12077873192759316801,108860443267429075203

%N a(n) = 9^n - 7^n + 1.

%H Paolo Xausa, <a href="/A155660/b155660.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 (17,-79,63).

%F G.f.: 1/(1-9*x)-1/(1-7*x)+1/(1-x).

%F E.g.f.: exp(9*x)-exp(7*x)+exp(x).

%F a(n) = 16*a(n-1)-63*a(n-2)+48 with a(0) = 1, a(1) = 3. - _Vincenzo Librandi_, Jul 21 2010

%t LinearRecurrence[{17,-79,63},{1,3,33},30] (* _Harvey P. Dale_, Feb 25 2015 *)

%o (PARI) a(n)=9^n-7^n+1 \\ _Charles R Greathouse IV_, Jun 11 2015

%Y Cf. A155638, A155639, A155640, A155641, A155642, A155643, A155644, A155645, A155646, A155647, A155648, A155649, A155650, A155651, A155652, A155653, A155654, A155655, A155656, A155657, A155658, A155659.

%K nonn,easy

%O 0,2

%A _Mohammad K. Azarian_, Jan 31 2009