OFFSET
1,1
COMMENTS
First 7 terms = 7th row in A111445.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
a(1)=7, a(2)=43, a(n) = 50 + a(n-2).
From Colin Barker, Jul 04 2014: (Start)
a(n) = (11*(-1)^n + 50*n - 25)/2.
a(n) = a(n-1) + a(n-2) - a(n-3).
G.f.: x*(7*x^2+36*x+7) / ((x-1)^2*(x+1)). (End)
MATHEMATICA
LinearRecurrence[{1, 1, -1}, {7, 43, 57}, 60] (* Harvey P. Dale, May 12 2025 *)
PROG
(PARI) select(n->n^2%100==49, vector(10^3, n, n)) \\ Colin Barker, Jul 04 2014
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Zak Seidov, Apr 07 2009
STATUS
approved
