|
|
A258340
|
|
a(n) = (7^n + 3^n - 2)/8.
|
|
0
|
|
|
1, 7, 46, 310, 2131, 14797, 103216, 721420, 5046661, 35316787, 247187986, 1730227330, 12111325591, 84778481977, 593446982356, 4154121702040, 29078830390921, 203551748166367, 1424862043454326, 9974033723049550, 69818234317954651, 488727634995505957
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
This sequence appeared on an test given to job interviewers.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 11*a(n-1) - 31*a(n-2) + 21*a(n-3) with n>2, a(0)=0. - Bruno Berselli, Aug 24 2015
|
|
MATHEMATICA
|
Table[(7^n + 3^n - 2)/8, {n, 1, 30}] (* Bruno Berselli, Aug 24 2015 *)
LinearRecurrence[{11, -31, 21}, {1, 7, 46}, 30] (* Harvey P. Dale, May 01 2018 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|