login
3*6^n+1.
1

%I #12 Sep 08 2022 08:46:00

%S 4,19,109,649,3889,23329,139969,839809,5038849,30233089,181398529,

%T 1088391169,6530347009,39182082049,235092492289,1410554953729,

%U 8463329722369,50779978334209,304679870005249,1828079220031489,10968475320188929

%N 3*6^n+1.

%H Vincenzo Librandi, <a href="/A199318/b199318.txt">Table of n, a(n) for n = 0..1000</a>

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

%F a(n) = 6*a(n-1)-5.

%F a(n) = 7*a(n-1)-6*a(n-2).

%F G.f.: (4-9*x)/((1-x)*(1-6*x)).

%t 3 6^Range[0,20] +1 (* or *) LinearRecurrence[{7,-6},{4,19},30] (* _Harvey P. Dale_, Sep 30 2020 *)

%o (Magma) [3*6^n+1: n in [0..30]];

%K nonn,easy

%O 0,1

%A _Vincenzo Librandi_, Nov 05 2011