This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A104004 #50 Jun 09 2025 00:26:16 %S A104004 1,3,7,16,35,75,158,329,679,1392,2839,5767,11678,23589,47555,95720, %T A104004 192427,386451,775486,1555153,3117071,6245088,12507887,25044431, %U A104004 50135230,100345485,200812363,401821144,803960099,1608434427,3217700894,6436748057 %N A104004 Expansion of (1-x) * (1+x) / ((1-2*x)*(1-x-x^2)). %C A104004 A floretion-generated sequence relating to Fibonacci numbers and powers of 2. The sequence results from a particular transform of the sequence A000079*(-1)^n (powers of 2). %C A104004 Floretion Algebra Multiplication Program, FAMP Code: 1jesforseq[ ( 5'i + .5i' + .5'ii' + .5e)*( + .5j' + .5'kk' + .5'ki' + .5e ) ], 1vesforseq = A000079(n+1)*(-1)^(n+1), ForType: 1A. Identity used: jesfor = jesrightfor + jesleftfor %H A104004 Vincenzo Librandi, <a href="/A104004/b104004.txt">Table of n, a(n) for n = 0..1000</a> %H A104004 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (3,-1,-2). %F A104004 4*a(n) = A008466(n+3) + A027973(n) (FAMP result). %F A104004 Suggestions made by Superseeker: (Start) %F A104004 a(n+2) - a(n+1) - a(n) = A042950(n+1). %F A104004 Coefficients of g.f.*(1-x)/(1+x) match A099036. %F A104004 Coefficients of g.f./(1+x) match A027934. %F A104004 Coefficients of g.f./(1-x^2) match A008466. (End) %F A104004 a(n) = A101220(3, 2, n+1) - A101220(3, 2, n). - _Ross La Haye_, Aug 05 2005 %F A104004 a(n) = 3*2^n - Fibonacci(n+3) = A221719(n) + 1. - _Ralf Stephan_, May 20 2007, _Hugo Pfoertner_, Mar 06 2024 %F A104004 a(n) = (3*2^n - (2^(-n)*((1-sqrt(5))^n*(-2+sqrt(5)) + (1+sqrt(5))^n*(2+sqrt(5)))) / sqrt(5)). - _Colin Barker_, Aug 18 2017 %F A104004 From _G. C. Greubel_, Jun 05 2025: (Start) %F A104004 Sum_{k=0..n} A022958(k+1)*a(n-k) = A001911(n+1). %F A104004 Sum_{k=0..n} (-1)^k*A016777(k)*a(n-k) = A078024(n). %F A104004 E.g.f.: 3*exp(2*x) - (2/sqrt(5))*exp(x/2)*( 2*sinh(sqrt(5)*x/2) + sqrt(5)*cosh(sqrt(5)*x/2) ). (End) %p A104004 with (combinat):a[0]:=0:a[1]:=1:for n from 2 to 50 do a[n]:=fibonacci(n-1)+2*a[n-1] od: seq(a[n], n=1..26); # _Zerinvary Lajos_, Mar 17 2008 %t A104004 LinearRecurrence[{3, -1, -2}, {1, 3, 7}, 80] (* _Vincenzo Librandi_, Aug 18 2017 *) %t A104004 CoefficientList[Series[(1-x)(1+x)/((2x-1)(x^2+x-1)),{x,0,40}],x] (* _Harvey P. Dale_, Oct 12 2024 *) %t A104004 A104004[n_]:= 3*2^n -Fibonacci[n+3]; (* _G. C. Greubel_, Jun 05 2025 *) %o A104004 (Magma) [3*2^n-Fibonacci(n+3): n in [0..40]]; // _Vincenzo Librandi_, Aug 18 2017 %o A104004 (SageMath) %o A104004 def A104004(n): return 3*2**n - fibonacci(n+3) # _G. C. Greubel_, Jun 05 2025 %Y A104004 Cf. A000045, A000079, A001911, A008466, A016777, A022958, A027934, A042950, A078024, A099036, A221719. %K A104004 easy,nonn %O A104004 0,2 %A A104004 _Creighton Dement_, Feb 24 2005