OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..5000
Tanya Khovanova, Recursive Sequences
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 955
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 2*a(n-1) - a(n-2). - Wesley Ivan Hurt, Mar 17 2023
G.f.: (6+x)/(1-x)^2. - Wesley Ivan Hurt, Dec 28 2023
MATHEMATICA
Array[7*#+6&, 100, 0] (* Vladimir Joseph Stephan Orlovsky, Dec 14 2009 *)
LinearRecurrence[{2, -1}, {6, 13}, 60] (* Harvey P. Dale, Apr 13 2022 *)
PROG
(Magma) [7*n + 6: n in [0..60]]; // Vincenzo Librandi, Jun 18 2011
(PARI) a(n)=7*n+6 \\ Charles R Greathouse IV, Jul 10 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved