A024066 a(n) = 6^n - n^4.
1, 5, 20, 135, 1040, 7151, 45360, 277535, 1675520, 10071135, 60456176, 362782415, 2176761600, 13060665455, 78364125680, 470184933951, 2821109841920, 16926659361215, 101559956563440, 609359739880175
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..500
- Index entries for linear recurrences with constant coefficients, signature (11, -40, 70, -65, 31, -6).
Programs
-
Magma
[6^n-n^4: n in [0..25]]; // Vincenzo Librandi, Jul 03 2011
-
Mathematica
Table[6^n-n^4,{n,0,30}] (* or *) LinearRecurrence[{11,-40,70,-65,31,-6},{1,5,20,135,1040,7151},30] (* Harvey P. Dale, Apr 09 2018 *)