OFFSET
0,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,2,1).
FORMULA
EXAMPLE
a(0) = 10*0 + 1 = 1,
a(1) = 10*1 - 1 = 9,
a(2) = 10*1 + 1 = 11,
a(3) = 10*2 - 1 = 19.
MATHEMATICA
LinearRecurrence[{0, 2, 1}, {1, 9, 11}, 50] (* Paolo Xausa, May 20 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Apr 23 2024
STATUS
approved