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 (31,-155,125).
FORMULA
a(n) = (1/4)*(5^n - 1)^2.
G.f.: -4*x*(5*x+1)/((x-1)*(5*x-1)*(25*x-1)). - Colin Barker, Dec 23 2012
From Elmo R. Oliveira, Dec 09 2025: (Start)
E.g.f.: exp(x)*(1 - 2*exp(4*x) + exp(24*x))/4.
a(n) = 31*a(n-1) - 155*a(n-2) + 125*a(n-3) for n > 3. (End)
EXAMPLE
a(2) = 144 because there are 145 (the second element in sequence A060720) singular 2 X 2 matrices over GF(5), that have rank <= 1 of which only the zero matrix has rank zero so a(2) = 145 - 1 = 144.
MATHEMATICA
Table[(5^n-1)^2/4, {n, 20}] (* or *) LinearRecurrence[{31, -155, 125}, {4, 144, 3844}, 20] (* Harvey P. Dale, Dec 06 2014 *)
PROG
(PARI) a(n) = { (5^n - 1)^2 / 4 } \\ 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
