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.

A048473 a(0)=1, a(n) = 3*a(n-1) + 2; a(n) = 2*3^n - 1.

This page as a plain text file.
%I A048473 #98 Mar 08 2025 17:16:48
%S A048473 1,5,17,53,161,485,1457,4373,13121,39365,118097,354293,1062881,
%T A048473 3188645,9565937,28697813,86093441,258280325,774840977,2324522933,
%U A048473 6973568801,20920706405,62762119217,188286357653,564859072961,1694577218885,5083731656657,15251194969973,45753584909921
%N A048473 a(0)=1, a(n) = 3*a(n-1) + 2; a(n) = 2*3^n - 1.
%C A048473 The number of triangles (of all sizes, including holes) in Sierpiński's triangle after n inscriptions. - Lee Reeves, May 10 2004
%C A048473 The sequence is not only related to Sierpiński's triangle, but also to "Floret's cube" and the quaternion factor space Q X Q / {(1,1), (-1,-1)}. It can be written as a_n = ves((A+1)x)^n) as described at the Math Forum Discussions link. - _Creighton Dement_, Jul 28 2004
%C A048473 Relation to C(n) = Collatz function iteration using only odd steps: If we look for record subsequences where C(n) > n, this subsequence starts at 2^n - 1 and stops at the local maximum of 2*3^n - 1. Examples: [3,5], [7,11,17], [15,23,35,53], ..., [127,191,287,431,647,971,1457]. - Lambert Klasen, Mar 11 2005
%C A048473 Group the natural numbers so that the (2n-1)-th group sum is a multiple of the (2n)-th group containing one term. (1,2),(3),(4,5,6,7,8,9,10,11),(12),(13,14,15,16,17,18,19,...,38),(39),(40,41,...,118,119),(120), (121,122,123,...) ... a(n) = {the sum of the terms of (2n-1)-th group}/{the term of (2n)th group}. The first term of the odd numbered group is given by A003462. The only term of even numbered group is given by A029858. - _Amarnath Murthy_, Aug 01 2005
%C A048473 a(n)+1 = A008776(n); it appears that this gives the number of terms in the (n+1)-th "gap" of numbers missing in A171884. - _M. F. Hasler_, May 09 2013
%C A048473 Sum of n-th row of triangle of powers of 3: 1; 1 3 1; 1 3 9 3 1; 1 3 9 27 9 3 1; ... - _Philippe Deléham_, Feb 23 2014
%C A048473 For n >= 3, also the number of dominating sets in the n-helm graph. - _Eric W. Weisstein_, May 28 2017
%C A048473 The number of elements of length <= n in the free group on two generators. - _Anton Mellit_, Aug 10 2017
%C A048473 In general, a first order inhomogeneous recurrence of the form s(0) = a, s(n) = m*s(n-1) + k, n>0, will have a closed form of a*m^n + ((m^n-1)/(m-1))*k. - _Gary Detlefs_, Jun 07 2024
%D A048473 Theoni Pappas, Math Stuff, Wide World Publ/Tetra, San Carlos CA, page 15, 2002.
%H A048473 Vincenzo Librandi, <a href="/A048473/b048473.txt">Table of n, a(n) for n = 0..1000</a>
%H A048473 Creighton Dement, <a href="http://mathforum.org/kb/thread.jspa?forumID=13&amp;threadID=1962419">A paper on floretions and quaternions, some questions</a>, The Math Forum.
%H A048473 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/DominatingSet.html">Dominating Set</a>.
%H A048473 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/HelmGraph.html">Helm Graph</a>.
%H A048473 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (4,-3).
%F A048473 n-th difference of a(n), a(n-1), ..., a(0) is 2^(n+1) for n=1, 2, 3, ...
%F A048473 a(0)=1, a(n) = a(n-1) + 3^n + 3^(n-1). - Lee Reeves, May 10 2004
%F A048473 a(n) = (3^n + 3^(n+1) - 2)/2. - _Creighton Dement_, Jul 31 2004
%F A048473 (1, 5, 17, 53, 161, ...) = Ternary (1, 12, 122, 1222, 12222, ...). - _Gary W. Adamson_, May 02 2005
%F A048473 Row sums of triangle A134347. Also, binomial transform of A046055: (1, 4, 8, 16, 32, 64, ...); and double binomial transform of A010684: (1, 3, 1, 3, 1, 3, ...). - _Gary W. Adamson_, Oct 21 2007
%F A048473 G.f.: (1+x)/((1-3*x)*(1-x)). - _Zerinvary Lajos_, Jan 11 2009; corrected by _R. J. Mathar_, Jan 21 2009
%F A048473 a(0)=1, a(1)=5, a(n) = 4*a(n-1) - 3*a(n-2). - _Harvey P. Dale_, Mar 06 2012
%F A048473 a(n) = Sum_{k=0..n} A112468(n,k)*4^k. - _Philippe Deléham_, Feb 23 2014
%F A048473 E.g.f.: exp(x)*(2*exp(2*x) - 1). - _Elmo R. Oliveira_, Mar 08 2025
%e A048473 a(0) = 1;
%e A048473 a(1) = 1 + 3 + 1 = 5;
%e A048473 a(2) = 1 + 3 + 9 + 3 + 1 = 17;
%e A048473 a(3) = 1 + 3 + 9 + 27 + 9 + 3 + 1 = 53; etc. - _Philippe Deléham_, Feb 23 2014
%p A048473 g:= ((1+x)/(1-3*x)/(1-x)): gser:=series(g, x=0, 43): seq(coeff(gser, x, n), n=0..30); # _Zerinvary Lajos_, Jan 11 2009; typo fixed by Marko Mihaily, Mar 07 2009
%t A048473 NestList[3 # + 2 &, 1, 30] (* _Harvey P. Dale_, Mar 06 2012 *)
%t A048473 LinearRecurrence[{4, -3}, {1, 5}, 30] (* _Harvey P. Dale_, Mar 06 2012 *)
%t A048473 Table[2 3^n - 1, {n, 20}] (* _Eric W. Weisstein_, May 28 2017 *)
%t A048473 2 3^Range[20] - 1 (* _Eric W. Weisstein_, May 28 2017 *)
%o A048473 (Magma) [2*3^n - 1: n in [0..30]]; // _Vincenzo Librandi_, Sep 23 2011
%o A048473 (PARI) first(m)=vector(m,n,n--;2*3^n - 1) \\ _Anders Hellström_, Dec 11 2015
%Y A048473 a(n)=T(2,n), array T given by A048471.
%Y A048473 Cf. A003462, A029858. A column of A119725.
%Y A048473 Cf. A008776, A010684, A046055, A112468, A112739, A134347, A171884.
%K A048473 nonn,easy
%O A048473 0,2
%A A048473 _Clark Kimberling_
%E A048473 Better description from _Amarnath Murthy_, May 27 2001