|
|
A257548
|
|
a(1) = 1, a(2) = 2, a(3) = 5, a(4) = 8 and a(5) = 15, a(n) = Sum_{j=1..n-1} a(j).
|
|
6
|
|
|
1, 2, 5, 8, 15, 31, 62, 124, 248, 496, 992, 1984, 3968, 7936, 15872, 31744, 63488, 126976, 253952, 507904, 1015808, 2031616, 4063232, 8126464, 16252928, 32505856, 65011712, 130023424, 260046848, 520093696, 1040187392, 2080374784, 4160749568, 8321499136
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
31 is the only prime after 5 (the remaining terms are even).
|
|
LINKS
|
|
|
FORMULA
|
For n>=6, a(n) = 31*2^(n-6).
E.g.f.: (31/64)*exp(2*x) + x/32 + x^2/32 + 3*x^3/16 + x^4/96 - x^5/240. - G. C. Greubel, Jan 05 2023
|
|
MATHEMATICA
|
Join[{1, 2, 5, 8, 15}, Table[31*2^(n-6), {n, 6, 50}]] (* Vincenzo Librandi, May 03 2015 *)
CoefficientList[ Series[(x^5 -x^4 -2x^3 +x^2 +1)/(1 -2x), {x, 0, 33}], x] (* Robert G. Wilson v, May 05 2015 *)
Join[{1, 2, 5, 8, 15}, NestList[2#&, 31, 30]] (* Harvey P. Dale, Oct 09 2018 *)
|
|
PROG
|
(Magma) [1, 2, 5, 8] cat [31*2^n div 64: n in [5..50]]; // Vincenzo Librandi, May 03 2015
(SageMath)
def A257548(n): return (4*fibonacci(n+1) -3 -(-1)^n)/2 if (n<6) else 31*2^(n-6)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|