A024065 a(n) = 6^n - n^3.
1, 5, 28, 189, 1232, 7651, 46440, 279593, 1679104, 10076967, 60465176, 362795725, 2176780608, 13060691819, 78364161352, 470184981201, 2821109903360, 16926659439823, 101559956662584, 609359740003637
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..500
- Index entries for linear recurrences with constant coefficients, signature (10,-30,40,-25,6).
Programs
-
Magma
[6^n-n^3: n in [0..25]]; // Vincenzo Librandi, Jul 03 2011
-
Mathematica
Table[6^n-n^3,{n,0,20}] (* Harvey P. Dale, Jun 15 2019 *)
Formula
G.f.: (-1 - 7*x^4 - 19*x^3 - 8*x^2 + 5*x)/((6*x-1)*(x-1)^4). - Maksym Voznyy (voznyy(AT)mail.ru), Jul 26 2009