OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (57,-399,343).
FORMULA
a(n) = (7^n - 1)^2/6.
G.f.: -6*x*(7*x+1)/((x-1)*(7*x-1)*(49*x-1)). - Colin Barker, Dec 23 2012
From Elmo R. Oliveira, Dec 09 2025: (Start)
E.g.f.: exp(x)*(1 - 2*exp(6*x) + exp(48*x))/6.
a(n) = 57*a(n-1) - 399*a(n-2) + 343*a(n-3) for n > 3. (End)
EXAMPLE
a(2) = 384 because there are 385 (the second element in sequence A060721) singular 2 X 2 matrices over GF(7), that have rank <= 1 of which only the zero matrix has rank zero so a(2) = 385 - 1 = 384.
MATHEMATICA
(7^Range[20] - 1)^2/6 (* Paolo Xausa, May 20 2026 *)
PROG
(PARI) a(n) = { (7^n - 1)^2 / 6 } \\ Harry J. Smith, Jul 13 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ahmed Fares (ahmedfares(AT)my-deja.com), May 04 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), May 07 2001
STATUS
approved
