A017318 a(n) = (10*n + 4)^2.
16, 196, 576, 1156, 1936, 2916, 4096, 5476, 7056, 8836, 10816, 12996, 15376, 17956, 20736, 23716, 26896, 30276, 33856, 37636, 41616, 45796, 50176, 54756, 59536, 64516, 69696, 75076, 80656, 86436
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..10000
- Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
Programs
-
Magma
[(10*n+4)^2: n in [0..40] ]; // Vincenzo Librandi, Aug 01 2011
-
Mathematica
(10Range[0,30]+4)^2 (* or *) LinearRecurrence[{3,-3,1},{16,196,576},30] (* Harvey P. Dale, May 03 2018 *)
-
PARI
a(n)=(10*n+4)^2 \\ Charles R Greathouse IV, Jun 17 2017
Formula
G.f.: -4*(x+4)*(9*x+1)/(x-1)^3. - R. J. Mathar, Mar 20 2018
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Wesley Ivan Hurt, Aug 19 2022