OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
G.f.: -729*(64 + 15177*x + 154113*x^2 + 262438*x^3 + 88998*x^4 + 4089*x^5 + x^6)/(x-1)^7. - R. J. Mathar, Mar 20 2018
MATHEMATICA
(9*Range[0, 20]+6)^6 (* Harvey P. Dale, Oct 20 2025 *)
(* Alternative: *)
LinearRecurrence[{7, -21, 35, -35, 21, -7, 1}, {46656, 11390625, 191102976, 1291467969, 5489031744, 17596287801, 46656000000}, 20] (* Harvey P. Dale, Oct 20 2025 *)
PROG
(Magma) [(9*n+6)^6: n in [0..25]]; // Vincenzo Librandi, Jul 25 2011
(Python)
def A017238(n): return (9*n+6)**6 # Aidan Chen, Jan 13 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
