login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A023434 Dying rabbits: a(n) = a(n-1) + a(n-2) - a(n-4). 12

%I #95 Sep 08 2022 08:44:47

%S 0,1,1,2,3,4,6,8,11,15,20,27,36,48,64,85,113,150,199,264,350,464,615,

%T 815,1080,1431,1896,2512,3328,4409,5841,7738,10251,13580,17990,23832,

%U 31571,41823,55404,73395,97228,128800,170624,226029,299425,396654,525455

%N Dying rabbits: a(n) = a(n-1) + a(n-2) - a(n-4).

%C Limit_{n->infinity} a(n)/a(n-1) = positive root of 1+x-x^3 (smallest Pisot-Vijayaraghavan number, A060006). - _Gerald McGarvey_, Sep 19 2004

%C a(n) is the number of distinct even run-types taken over nonempty subsets of [n+1]. The run-type of a set of positive integers is the sequence of lengths when the set is decomposed into maximal runs of consecutive integers and it is even if all its entries are even. For example, the set {2,3,5,6,9,10,11} has run-type (2,2,3) and a(6)=6 counts (2),(4),(6),(2,2),(2,4),(4,2). - _David Callan_, Jul 14 2006

%C Partial sums of the sequence obtained by deleting the first 2 terms of A000931. Example: 0+1+0+1+1 = 3 = a(4). - _David Callan_, Jul 14 2006

%C One less than the sequence obtained by deleting the first 7 terms of A000931. - _Ira M. Gessel_, May 02 2007

%C This sequence counts ordered partitions of (n-1) into parts less than or equal to 3, in which the order of 1's are unimportant. Alternately, the order of 2's and 3's are important (see example). - _David Neil McGrath_, Apr 26 2015

%C Interleaving of A289692 and A077855. - _Bruce J. Nicholson_, Apr 09 2018

%H Robert Israel, <a href="/A023434/b023434.txt">Table of n, a(n) for n = 0..7360</a>

%H O. Bouillot, <a href="https://arxiv.org/abs/1404.0992">The Algebra of Multitangent Functions</a>, arXiv:1404.0992 [math.NT], 2014.

%H O. Bouillot, <a href="https://doi.org/10.1016/j.jalgebra.2013.12.016">The Algebra of Multitangent Functions</a>, Journal of Algebra, Volume 410, 15 July 2014, Pages 148-238.

%H J. H. E. Cohn, <a href="http://www.fq.math.ca/Scanned/2-2/cohn1.pdf">Letter to the editor</a>, Fib. Quart. 2 (1964), 108.

%H V. E. Hoggatt, Jr. and D. A. Lind, <a href="http://www.fq.math.ca/Scanned/7-5/hoggatt.pdf">The dying rabbit problem</a>, Fib. Quart. 7 (1969), 482-487.

%H INRIA Algorithms Project, <a href="http://ecs.inria.fr/services/structure?nbr=1070">Encyclopedia of Combinatorial Structures 1070</a>

%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (1,1,0,-1).

%F a(n) = A000931(n+7)-1.

%F a(0)=0, a(1)=1, a(2)=1 then for n>2 a(n)=ceiling(r*a(n-1)) where r is the positive root of x^3-x-1=0. - _Benoit Cloitre_, Jun 19 2004

%F G.f.: x/((1-x)*(1-x^2-x^3)). - _Jon Perry_, Jul 04 2004

%F For n>2 a(n) = floor(sqrt(a(n-3)*a(n-2) + a(n-2)*a(n-1) + a(n-1)*a(n-3))) + 1. - _Gerald McGarvey_, Sep 19 2004

%F a(n) = Sum_{k=1..floor((n+2)/3)} binomial(floor((n+2-k)/2),k). This formula counts even run-types by length. - _David Callan_, Jul 14 2006

%F a(n) = a(n-2) + a(n-3) + 1. - _Mark Dols_, Feb 01 2010

%F a(n) + a(n+1) = A054405(n). Partial sums is A054405. - _Michael Somos_, Dec 01 2013

%F a(-3-n) = -A077905(n) for all n in Z. - _Michael Somos_, Sep 25 2014

%e G.f. = x + x^2 + 2*x^3 + 3*x^4 + 4*x^5 + 6*x^6 + 8*x^7 + 11*x^8 + ...

%e a(7)=8, with (n-1)=6. The partially ordered partitions of 6 are (33),(321,312,132=one),(231,213,123=one),(3111,1311,1131,1113=one),(222),(2211,1122,1221,2112,1212,2121=one),(21111,12111,11211,11121,11112=one),(111111). - _David Neil McGrath_, Apr 26 2015

%p f:= gfun:-rectoproc({a(n)=a(n-1)+a(n-2)-a(n-4),seq(a(i)=[0,1,1,2][i+1],i=0..3)},a(n),remember):

%p seq(f(i),i=0..100); # _Robert Israel_, May 04 2015

%t a[ n_] := If[ n < 0, SeriesCoefficient[ -x^3 / (1 - x^2 - x^3 + x^4), {x, 0, -n}], SeriesCoefficient[ x / (1 - x - x^2 + x^4), {x, 0, n}]]; (* _Michael Somos_, Nov 29 2013 *)

%t LinearRecurrence[{1, 1, 0, -1}, {0, 1, 1, 2}, 50] (* _Vincenzo Librandi_, Apr 27 2015 *)

%o (PARI) {a(n) = polcoeff( if( n<0, -x^3 / (1 - x^2 - x^3 + x^4), x / (1 - x - x^2 + x^4)) + x * O(x^abs(n)), abs(n))}; /* _Michael Somos_, Nov 29 2013 */

%o (PARI) x='x+O('x^99); concat(0, Vec(x/((1-x)*(1-x^2-x^3)))) \\ _Altug Alkan_, Apr 09 2018

%o (Magma) [0,1] cat [ n le 4 select (n) else Self(n-1)+Self(n-2)-Self(n-4): n in [1..45] ]; // _Vincenzo Librandi_, Apr 27 2015

%Y Cf. A000931, A054405, A060006, A077905.

%Y Cf. A289692, A077855.

%K nonn,easy

%O 0,4

%A _N. J. A. Sloane_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 13:02 EDT 2024. Contains 371969 sequences. (Running on oeis4.)