|
|
A163383
|
|
a(n) = (n-1)*2^n - 1.
|
|
1
|
|
|
-1, 3, 15, 47, 127, 319, 767, 1791, 4095, 9215, 20479, 45055, 98303, 212991, 458751, 983039, 2097151, 4456447, 9437183, 19922943, 41943039, 88080383, 184549375, 385875967, 805306367, 1677721599, 3489660927, 7247757311, 15032385535
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Prime for n = 2, 4, 5, 11, 28, 35, no more < 100.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 5*a(n-1) - 8*a(n-2) + 4*a(n-3).
G.f.: x*(1-8*x+8*x^2)/((x-1)*(-1+2*x)^2). (End)
|
|
EXAMPLE
|
a(28) = ((2^(28))*(28 - 1)) - 1 = 7247757311.
|
|
MATHEMATICA
|
LinearRecurrence[{5, -8, 4}, {-1, 3, 15}, 100] (* G. C. Greubel, Dec 20 2016 *)
|
|
PROG
|
(PARI) Vec(x*(1-8*x+8*x^2)/((x-1)*(-1+2*x)^2) + O(x^50)) \\ G. C. Greubel, Dec 20 2016
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,sign
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|