OFFSET
0,1
COMMENTS
The sequence appears on the main diagonal of the array defined by A123167 in the first row and successive differences in followup rows:
2, 3, 10, 7, 18, 11, 26, 15, 34, 19, ... A123167
1, 7, -3, 11, -7, 15, -11, 19, -15, 23, ... first diff
6, -10, 14, -18, 22 -26, 30, -34, 38, ... second diff
-16, 24, -32, 40, -48, 56, -64, 72, -80, ... third diff
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-4).
FORMULA
MATHEMATICA
LinearRecurrence[{4, -4}, {2, 7, 14, 40}, 40] (* or *) Join[{2, 7}, Table[ (3n+1) 2^(n-1), {n, 2, 40}]] (* Harvey P. Dale, Oct 05 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Apr 23 2010
EXTENSIONS
Edited by R. J. Mathar, Jun 30 2010
STATUS
approved