login
a(1)=1, a(n) = n*19^(n-1) + a(n-1).
2

%I #19 Feb 12 2024 06:36:33

%S 1,39,1122,28558,680163,15536757,344857924,7495831836,160347899205,

%T 3387224876995,70828953712806,1468712060491434,30241806008351527,

%U 618983574479950353,12604083861223212168,255502116339219984952

%N a(1)=1, a(n) = n*19^(n-1) + a(n-1).

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (39,-399,361).

%F G.f.: x/((1 - x)*(1 - 19*x)^2). - _Stefano Spezia_, Mar 11 2020

%t RecurrenceTable[{a[1]==1,a[n]==n*19^(n-1)+a[n-1]},a,{n,20}] (* _Harvey P. Dale_, Oct 01 2012 *)

%o (PARI) a(n) = (1+19^n*(18*n-1))/324; \\ _Jinyuan Wang_, Mar 11 2020

%K nonn,easy

%O 1,2

%A _Olivier GĂ©rard_