%I #37 Sep 08 2022 08:45:51
%S 0,94,376,846,1504,2350,3384,4606,6016,7614,9400,11374,13536,15886,
%T 18424,21150,24064,27166,30456,33934,37600,41454,45496,49726,54144,
%U 58750,63544,68526,73696,79054,84600,90334,96256,102366,108664
%N 94*n^2.
%H Vincenzo Librandi, <a href="/A174337/b174337.txt">Table of n, a(n) for n = 0..10000</a>
%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (3,-3,1).
%F G.f. 94*x*(1+x)/(1-x)^3 . - _R. J. Mathar_, Oct 01 2011
%F a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - _Vincenzo Librandi_, Aug 21 2014
%t Table[94 n^2, {n, 0, 40}] (* or *) CoefficientList[Series[94 x (1 + x)/(1 - x)^3, {x, 0, 40}], x] (* _Vincenzo Librandi_, Aug 21 2014 *)
%t LinearRecurrence[{3,-3,1},{0,94,376},40] (* _Harvey P. Dale_, Aug 15 2016 *)
%o (Magma) [94*n^2: n in [0..50]];
%o (Magma) I:=[0, 94, 376]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+Self(n-3): n in [1..40]]; // _Vincenzo Librandi_, Aug 21 2014
%o (PARI) a(n)=94*n^2 \\ _Charles R Greathouse IV_, Jun 17 2017
%Y Cf. A000290, A024352.
%K nonn,easy,less
%O 0,2
%A _Vincenzo Librandi_, Mar 16 2010
|