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”).

8^n - 5^n.
2

%I #19 Sep 08 2022 08:45:57

%S 0,3,39,387,3471,29643,246519,2019027,16386591,132264603,1063976199,

%T 8541106467,68475336111,548535110763,4391942995479,35153854510707,

%U 281322388820031,2251036874232123,18010583812216359,144096114589527747,1152826137175206351

%N 8^n - 5^n.

%H Vincenzo Librandi, <a href="/A191468/b191468.txt">Table of n, a(n) for n = 0..300</a>

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (13,-40).

%F a(n) = 13*a(n-1) - 40*a(n-2).

%F G.f.: 3*x/((1-5*x)*(1-8*x)). - _Vincenzo Librandi_, Oct 05 2014

%F a(n+1) = 3*A016162(n). - _Vincenzo Librandi_, Oct 05 2014

%t Table[8^n-5^n,{n,0,20}] (* or *) LinearRecurrence[{13,-40},{0,3},30] (* _Harvey P. Dale_, Dec 04 2012 *)

%t CoefficientList[Series[3 x/((1 - 5 x) (1 - 8 x)), {x, 0, 30}], x] (* _Vincenzo Librandi_, Oct 05 2014 *)

%o (Magma) [8^n - 5^n: n in [0..20]];

%o (PARI) a(n)=8^n-5^n \\ _Charles R Greathouse IV_, Jun 08 2011

%Y Cf. A016162, A016177.

%K nonn,easy

%O 0,2

%A _Vincenzo Librandi_, Jun 03 2011