|
|
A084065
|
|
Fourth row of number array A084061.
|
|
5
|
|
|
1, 1, 7, 54, 553, 7100, 109863, 1991752, 41426257, 972602640, 25447064743, 734276705888, 23166635069241, 793426715543488, 29316839407495111, 1162492244159875200, 49240280161094287777, 2218952409252783579392
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
a(n) = ( (n - sqrt(3))^n + (n + sqrt(3))^n )/2.
|
|
MAPLE
|
seq( round(((n-sqrt(3))^n + (n+sqrt(3))^n)/2), n=0..20); # G. C. Greubel, Jan 11 2020
|
|
MATHEMATICA
|
Table[Round[((n+Sqrt[3])^n + (n-Sqrt[3])^n)/2], {n, 0, 20}] (* G. C. Greubel, Jan 11 2020 *)
|
|
PROG
|
(PARI) vector(21, n, round(((n-1-sqrt(3))^(n-1) + (n-1+sqrt(3))^(n-1))/2) ) \\ G. C. Greubel, Jan 11 2020
(Magma) [Round(((n-Sqrt(3))^n + (n+Sqrt(3))^n)/2): n in [0..20]]; // G. C. Greubel, Jan 11 2020
(Sage) [round(((n-sqrt(3))^n + (n+sqrt(3))^n)/2) for n in (0..20)] # G. C. Greubel, Jan 11 2020
(GAP) List([0..20], n-> ((n-Sqrt(3))^n + (n+Sqrt(3))^n)/2); # G. C. Greubel, Jan 11 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|