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 A052996 #85 Jul 02 2025 16:01:59 %S A052996 1,3,8,17,35,71,143,287,575,1151,2303,4607,9215,18431,36863,73727, %T A052996 147455,294911,589823,1179647,2359295,4718591,9437183,18874367, %U A052996 37748735,75497471,150994943,301989887,603979775,1207959551,2415919103 %N A052996 Expansion of (1+x^2-x^3)/((1-x)*(1-2*x)). %H A052996 Vincenzo Librandi, <a href="/A052996/b052996.txt">Table of n, a(n) for n = 0..1000</a> %H A052996 Gennady Eremin, <a href="https://arxiv.org/abs/2405.16143">Partitioning the set of natural numbers into Mersenne trees and into arithmetic progressions; Natural Matrix and Linnik's constant</a>, arXiv:2405.16143 [math.CO], 2024. See pp. 3-4, 14. %H A052996 INRIA Algorithms Project, <a href="http://ecs.inria.fr/services/structure?nbr=1074">Encyclopedia of Combinatorial Structures 1074</a> %H A052996 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (3,-2). %F A052996 Recurrence: {-2*a(n)+a(n+1)-1=0, a(0)=1, a(1)=3, a(2)=8}. %F A052996 a(n) = 9*2^(n-2) - 1 for n > 1. - _Brad Clardy_, Sep 23 2011 %p A052996 spec := [S, {S=Prod(Union(Prod(Z,Z), Sequence(Z)), Sequence(Union(Z,Z)))}, unlabeled ]: seq(combstruct[count](spec, size=n), n=0..20); %t A052996 a[0] := 1; a[1] := 3; a[2] := 8; a[n_] := 2*a[n - 1] + 1; Table[a[n], {n, 0, 12}] (* _L. Edson Jeffery_, Dec 18 2014 *) %t A052996 CoefficientList[ Series[(1 + x^2 - x^3)/((1 - x) (1 - 2 x)), {x, 0, 30}], x] (* _Robert G. Wilson v_, Jul 29 2015 *) %t A052996 LinearRecurrence[{3,-2},{1,3,8,17},40] (* _Harvey P. Dale_, Feb 11 2018 *) %o A052996 (Magma) [Floor(9*2^(n-2) - 1): n in [0..40]]; // _Vincenzo Librandi_, Sep 24 2011 %o A052996 (PARI) Vec((1+x^2-x^3)/((1-x)*(1-2*x)) + O(x^50)) \\ _Michel Marcus_, Jul 30 2015 %Y A052996 Cf. A050524 (primes of this sequence). %K A052996 easy,nonn %O A052996 0,2 %A A052996 encyclopedia(AT)pommard.inria.fr, Jan 25 2000 %E A052996 More terms from _James Sellers_, Jun 06 2000