|
|
A129728
|
|
a(n) = 2*(n-1) + Fibonacci(n).
|
|
2
|
|
|
1, 3, 6, 9, 13, 18, 25, 35, 50, 73, 109, 166, 257, 403, 638, 1017, 1629, 2618, 4217, 6803, 10986, 17753, 28701, 46414, 75073, 121443, 196470, 317865, 514285, 832098, 1346329, 2178371, 3524642, 5702953, 9227533, 14930422, 24157889, 39088243
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Old name was: A palindromic complexity sequence based on the Fibonacci numbers.
a(1)=1 gives more primes than a(1)=2 for some reason.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = a(n-1) + Fibonacci(n-2) + 2.
G.f.: x*(1-x^2-2*x^3)/((1-x)^2*(1-x-x^2)). - Colin Barker, Nov 08 2012
|
|
MAPLE
|
with(combinat); seq( 2*(n-1) + fibonacci(n), n=1..45); # G. C. Greubel, Dec 02 2019
|
|
MATHEMATICA
|
a[n_]:= a[n]= If[n==1, 1, a[n-1] + Fibonacci[n-2] +2]; Table[a[n], {n, 45}]
|
|
PROG
|
(Sage) [2*(n-1) + fibonacci(n) for n in (1..45)] # G. C. Greubel, Dec 02 2019
(GAP) List([1..45], n-> 2*(n-1) + Fibonacci(n) ); # G. C. Greubel, Dec 02 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|