cp's OEIS Frontend

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.

A099036 a(n) = 2^n - Fibonacci(n).

This page as a plain text file.
%I A099036 #64 Jun 06 2025 14:46:09
%S A099036 1,1,3,6,13,27,56,115,235,478,969,1959,3952,7959,16007,32158,64549,
%T A099036 129475,259560,520107,1041811,2086206,4176593,8359951,16730848,
%U A099036 33479407,66987471,134021310,268117645,536356683,1072909784,2146137379,4292788987,8586410014
%N A099036 a(n) = 2^n - Fibonacci(n).
%C A099036 Binomial transform of (-1)^n*A000045(n) + 1 = (-1)^n*A008346(n).
%C A099036 Number of compositions of n+1 that contain 1 as a part. - _Vladeta Jovovic_, Sep 26 2004
%C A099036 Generated from iterates of M * [1,1,1,...], where M = a tridiagonal matrix with [0,1,1,1,...] as the main diagonal, [1,1,1,...] as the superdiagonal and [1,0,0,0,...] as the subdiagonal. - _Gary W. Adamson_, Jan 05 2009
%C A099036 Starting with offset 1, generated from iterates of M * [1,1,1,...], M*ANS -> M*ANS,...; where M = = a tridiagonal matrix with (0,1,1,1,...) in the main diagonal, (1,1,1,...) in the superdiagonal and (1,0,0,0,...) in the subdiagonal. - _Gary W. Adamson_, Jan 04 2009
%C A099036 An elephant sequence, see A175655. For the central square 24 A[5] vectors, with decimal values between 11 and 416, lead to this sequence (without the first leading 1). For the corner squares these vectors lead to the companion sequence A027934 (without the leading 0). - _Johannes W. Meijer_, Aug 15 2010
%C A099036 Number of fixed points in all compositions of n+1. - _Alois P. Heinz_, Jun 18 2020
%H A099036 G. C. Greubel, <a href="/A099036/b099036.txt">Table of n, a(n) for n = 0..1000</a> (terms 0..200 from Vincenzo Librandi)
%H A099036 M. Archibald, A. Blecher, and A. Knopfmacher, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL23/Blecher/arch14.html">Fixed Points in Compositions and Words</a>, J. Int. Seq., Vol. 23 (2020), Article 20.11.1.
%H A099036 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (3,-1,-2).
%F A099036 G.f.: (1 - x)^2/((1 - 2*x)*(1 - x - x^2)).
%F A099036 a(n) = 3*a(n-1) - a(n-2) - 2*a(n-3).
%F A099036 a(n) = A101220(1,2,n+1) - A101220(1,2,n). - _Ross La Haye_, Aug 05 2005
%F A099036 a(n) = A000079(n+1) - A117591(n) = A117591(n) - 2 * A000045(n). - _Reinhard Zumkeller_, Aug 15 2013
%F A099036 a(n) = Sum_{t_1+2*t_2+...+n*t_n = n} multinomial(1+t_1+t_2+...+t_n, 1+t_1, t_2, ..., t_n). - _Mircea Merca_, Oct 09 2013
%F A099036 a(n) = Sum_{k=0..A003056(n+1)} k * A238350(n+1,k). - _Alois P. Heinz_, Jun 18 2020
%F A099036 E.g.f.: cosh(2*x) + sinh(2*x) - 2*exp(x/2)*sinh(sqrt(5)*x/2)/sqrt(5). - _Stefano Spezia_, Jan 31 2023
%t A099036 Table[2^n-Fibonacci[n],{n,0,100}] (* _Vladimir Joseph Stephan Orlovsky_, May 02 2011 *)
%o A099036 (Magma) [2^n-Fibonacci(n): n in [0..35]]; // _Vincenzo Librandi_, May 03 2011
%o A099036 (Haskell)
%o A099036 a099036 n = a099036_list !! n
%o A099036 a099036_list = zipWith (-) a000079_list a000045_list
%o A099036 -- _Reinhard Zumkeller_, Aug 15 2013
%o A099036 (PARI) a(n)=2^n-fibonacci(n) \\ _Charles R Greathouse IV_, Sep 24 2015
%o A099036 (SageMath)
%o A099036 def A099036(n): return 2**n -fibonacci(n) # _G. C. Greubel_, Jun 05 2025
%Y A099036 Cf. A000045, A000079, A003056, A008346, A027934, A101220, A117591, A175655, A212323, A238350.
%K A099036 easy,nonn
%O A099036 0,3
%A A099036 _Paul Barry_, Sep 23 2004
%E A099036 More terms from _Ross La Haye_, Aug 05 2005