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.

Showing 1-7 of 7 results.

A007283 a(n) = 3*2^n.

Original entry on oeis.org

3, 6, 12, 24, 48, 96, 192, 384, 768, 1536, 3072, 6144, 12288, 24576, 49152, 98304, 196608, 393216, 786432, 1572864, 3145728, 6291456, 12582912, 25165824, 50331648, 100663296, 201326592, 402653184, 805306368, 1610612736, 3221225472, 6442450944, 12884901888
Offset: 0

Views

Author

Keywords

Comments

Same as Pisot sequences E(3, 6), L(3, 6), P(3, 6), T(3, 6). See A008776 for definitions of Pisot sequences.
Numbers k such that A006530(A000010(k)) = A000010(A006530(k)) = 2. - Labos Elemer, May 07 2002
Also least number m such that 2^n is the smallest proper divisor of m which is also a suffix of m in binary representation, see A080940. - Reinhard Zumkeller, Feb 25 2003
Length of the period of the sequence Fibonacci(k) (mod 2^(n+1)). - Benoit Cloitre, Mar 12 2003
The sequence of first differences is this sequence itself. - Alexandre Wajnberg and Eric Angelini, Sep 07 2005
Subsequence of A122132. - Reinhard Zumkeller, Aug 21 2006
Apart from the first term, a subsequence of A124509. - Reinhard Zumkeller, Nov 04 2006
Total number of Latin n-dimensional hypercubes (Latin polyhedra) of order 3. - Kenji Ohkuma (k-ookuma(AT)ipa.go.jp), Jan 10 2007
Number of different ternary hypercubes of dimension n. - Edwin Soedarmadji (edwin(AT)systems.caltech.edu), Dec 10 2005
For n >= 1, a(n) is equal to the number of functions f:{1, 2, ..., n + 1} -> {1, 2, 3} such that for fixed, different x_1, x_2,...,x_n in {1, 2, ..., n + 1} and fixed y_1, y_2,...,y_n in {1, 2, 3} we have f(x_i) <> y_i, (i = 1,2,...,n). - Milan Janjic, May 10 2007
a(n) written in base 2: 11, 110, 11000, 110000, ..., i.e.: 2 times 1, n times 0 (see A003953). - Jaroslav Krizek, Aug 17 2009
Subsequence of A051916. - Reinhard Zumkeller, Mar 20 2010
Numbers containing the number 3 in their Collatz trajectories. - Reinhard Zumkeller, Feb 20 2012
a(n-1) gives the number of ternary numbers with n digits with no two adjacent digits in common; e.g., for n=3 we have 010, 012, 020, 021, 101, 102, 120, 121, 201, 202, 210 and 212. - Jon Perry, Oct 10 2012
If n > 1, then a(n) is a solution for the equation sigma(x) + phi(x) = 3x-4. This equation also has solutions 84, 3348, 1450092, ... which are not of the form 3*2^n. - Farideh Firoozbakht, Nov 30 2013
a(n) is the upper bound for the "X-ray number" of any convex body in E^(n + 2), conjectured by Bezdek and Zamfirescu, and proved in the plane E^2 (see the paper by Bezdek and Zamfirescu). - L. Edson Jeffery, Jan 11 2014
If T is a topology on a set V of size n and T is not the discrete topology, then T has at most 3 * 2^(n-2) many open sets. See Brown and Stephen references. - Ross La Haye, Jan 19 2014
Comment from Charles Fefferman, courtesy of Doron Zeilberger, Dec 02 2014: (Start)
Fix a dimension n. For a real-valued function f defined on a finite set E in R^n, let Norm(f, E) denote the inf of the C^2 norms of all functions F on R^n that agree with f on E. Then there exist constants k and C depending only on the dimension n such that Norm(f, E) <= C*max{ Norm(f, S) }, where the max is taken over all k-point subsets S in E. Moreover, the best possible k is 3 * 2^(n-1).
The analogous result, with the same k, holds when the C^2 norm is replaced, e.g., by the C^1, alpha norm (0 < alpha <= 1). However, the optimal analogous k, e.g., for the C^3 norm is unknown.
For the above results, see Y. Brudnyi and P. Shvartsman (1994). (End)
Also, coordination sequence for (infinity, infinity, infinity) tiling of hyperbolic plane. - N. J. A. Sloane, Dec 29 2015
The average of consecutive powers of 2 beginning with 2^1. - Melvin Peralta and Miriam Ong Ante, May 14 2016
For n > 1, a(n) is the smallest Zumkeller number with n divisors that are also Zumkeller numbers (A083207). - Ivan N. Ianakiev, Dec 09 2016
Also, for n >= 2, the number of length-n strings over the alphabet {0,1,2,3} having only the single letters as nonempty palindromic subwords. (Corollary 21 in Fleischer and Shallit) - Jeffrey Shallit, Dec 02 2019
Also, a(n) is the minimum link-length of any covering trail, circuit, path, and cycle for the set of the 2^(n+2) vertices of an (n+2)-dimensional hypercube. - Marco Ripà, Aug 22 2022
The known fixed points of maps n -> A163511(n) and n -> A243071(n). [See comments in A163511]. - Antti Karttunen, Sep 06 2023
The finite subsequence a(3), a(4), a(5), a(6) = 24, 48, 96, 192 is one of only two geometric sequences that can be formed with all interior angles (all integer, in degrees) of a simple polygon. The other sequence is a subsequence of A000244 (see comment there). - Felix Huber, Feb 15 2024
A level 1 Sierpiński triangle is a triangle. Level n+1 is formed from three copies of level n by identifying pairs of corner vertices of each pair of triangles. For n>2, a(n-3) is the radius of the level n Sierpiński triangle graph. - Allan Bickle, Aug 03 2024

References

  • Jason I. Brown, Discrete Structures and Their Interactions, CRC Press, 2013, p. 71.
  • T. Ito, Method, equipment, program and storage media for producing tables, Publication number JP2004-272104A, Japan Patent Office (written in Japanese, a(2)=12, a(3)=24, a(4)=48, a(5)=96, a(6)=192, a(7)=384 (a(7)=284 was corrected)).
  • Kenji Ohkuma, Atsuhiro Yamagishi and Toru Ito, Cryptography Research Group Technical report, IT Security Center, Information-Technology Promotion Agency, JAPAN.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Subsequence of the following sequences: A029744, A029747, A029748, A029750, A362804 (after 3), A364494, A364496, A364289, A364291, A364292, A364295, A364497, A364964, A365422.
Essentially same as A003945 and A042950.
Row sums of (5, 1)-Pascal triangle A093562 and of (1, 5) Pascal triangle A096940.
Cf. Latin squares: A000315, A002860, A003090, A040082, A003191; Latin cubes: A098843, A098846, A098679, A099321.

Programs

Formula

G.f.: 3/(1-2*x).
a(n) = 2*a(n - 1), n > 0; a(0) = 3.
a(n) = Sum_{k = 0..n} (-1)^(k reduced (mod 3))*binomial(n, k). - Benoit Cloitre, Aug 20 2002
a(n) = A118416(n + 1, 2) for n > 1. - Reinhard Zumkeller, Apr 27 2006
a(n) = A000079(n) + A000079(n + 1). - Zerinvary Lajos, May 12 2007
a(n) = A000079(n)*3. - Omar E. Pol, Dec 16 2008
From Paul Curtz, Feb 05 2009: (Start)
a(n) = b(n) + b(n+3) for b = A001045, A078008, A154879.
a(n) = abs(b(n) - b(n+3)) with b(n) = (-1)^n*A084247(n). (End)
a(n) = 2^n + 2^(n + 1). - Jaroslav Krizek, Aug 17 2009
a(n) = A173786(n + 1, n) = A173787(n + 2, n). - Reinhard Zumkeller, Feb 28 2010
A216022(a(n)) = 6 and A216059(a(n)) = 7, for n > 0. - Reinhard Zumkeller, Sep 01 2012
a(n) = (A000225(n) + 1)*3. - Martin Ettl, Nov 11 2012
E.g.f.: 3*exp(2*x). - Ilya Gutkovskiy, May 15 2016
A020651(a(n)) = 2. - Yosu Yurramendi, Jun 01 2016
a(n) = sqrt(A014551(n + 1)*A014551(n + 2) + A014551(n)^2). - Ezhilarasu Velayutham, Sep 01 2019
a(A048672(n)) = A225546(A133466(n)). - Michel Marcus and Peter Munn, Nov 29 2019
Sum_{n>=1} 1/a(n) = 2/3. - Amiram Eldar, Oct 28 2020

A029858 a(n) = (3^n - 3)/2.

Original entry on oeis.org

0, 3, 12, 39, 120, 363, 1092, 3279, 9840, 29523, 88572, 265719, 797160, 2391483, 7174452, 21523359, 64570080, 193710243, 581130732, 1743392199, 5230176600, 15690529803, 47071589412, 141214768239
Offset: 1

Views

Author

Keywords

Comments

Also the number of 2-block covers of a labeled n-set. a(n) = A055154(n,2). Generally, number of k-block covers of a labeled n-set is T(n,k) = (1/k!)*Sum_{i = 1..k + 1} Stirling1(k + 1,i)*(2^(i - 1) - 1)^n. In particular, T(n,2) = (1/2!)*(3^n - 3), T(n,3) = (1/3!)*(7^n - 6*3^n + 11), T(n,4) = (1/4)!*(15^n - 10*7^n + 35*3^n - 50), ... - Vladeta Jovovic, Jan 19 2001
Conjectured to be the number of integers from 0 to 10^(n-1) - 1 that lack 0, 1, 2, 3, 4, 5 and 6 as a digit. - Alexandre Wajnberg, Apr 25 2005. This is easily verified to be true. - Renzo Benedetti, Sep 25 2008
Number of monic irreducible polynomials of degree 1 in GF(3)[x1,...,xn]. - Max Alekseyev, Jan 23 2006
Also, the greatest number of identical weights among which an odd one can be identified and it can be decided if the odd one is heavier or lighter, using n weighings with a comparing balance. If the odd one only needs to be identified, the sequence starts 4, 13, 40 and is A003462 (3^n - 1)/2, n > 1. - Tanya Khovanova, Dec 11 2006; corrected by Samuel E. Rhoads, Apr 18 2016
Binomial transform yields A134057. Inverse binomial transform yields A062510 with one additional 0 in front. - R. J. Mathar, Jun 18 2008
Numbers k where the recurrence s(0)=0, if s(k-1) >= k then s(k) = s(k-1) - k otherwise s(k) = s(k-1) + k produces s(k) = 0. - Hugo Pfoertner, Jan 05 2012
For n > 1: A008344(a(n)) = a(n). - Reinhard Zumkeller, May 09 2012
Also the number of edges in the (n-1)-Hanoi graph. - Eric W. Weisstein, Jun 18 2017
A level 1 Sierpiński triangle graph is a triangle. Level n+1 is formed from three copies of level n by identifying pairs of corner vertices of each pair of triangles. a(n) is the number of degree 4 vertices in the level n Sierpinski triangle graph. - Allan Bickle, Jul 30 2020
Also the number of minimum vertex cuts in the n-Apollonian network. - Eric W. Weisstein, Dec 20 2020
Also the minimum number of turns in n-dimensional Euclidean space needed to visit all 3^n points of the grid {0, 1, 2}^n, moving in straight lines between turns (repeated visits and direction changes at non-grid points are allowed). - Marco Ripà, Aug 06 2025

Examples

			For the Sierpiński triangle, Level 1 is a triangle, so a(1) = 0.
Level 2 has three corners (degree 2) and three degree 4 vertices, so a(2) = 3.
The level 2 Hanoi graph has 3 triangles joined by 3 edges, so a(2+1) = 12.
		

Crossrefs

Cf. A007283, A029858, A067771, A233774, A233775, A246959 (Sierpiński triangle graphs).
Cf. A000225, A029858, A058809, A375256 (Hanoi graphs).

Programs

Formula

a(n) = 3*a(n-1) + 3. - Alexandre Wajnberg, Apr 25 2005
O.g.f: 3*x^2/((1-x)*(1-3*x)). - R. J. Mathar, Jun 18 2008
a(n) = 3^(n-1) + a(n-1) (with a(1)=0). - Vincenzo Librandi, Nov 18 2010
a(n) = 3*A003462(n-1). - R. J. Mathar, Sep 10 2015
E.g.f.: 3*(-1 + exp(2*x))*exp(x)/2. - Ilya Gutkovskiy, Apr 19 2016
a(n) = A067771(n-1) - 3. - Allan Bickle, Jul 30 2020
a(n) = sigma(A008776(n-2)) for n>=2. - Flávio V. Fernandes, Apr 20 2021

Extensions

Corrected by T. D. Noe, Nov 07 2006

A067771 Number of vertices in Sierpiński triangle of order n.

Original entry on oeis.org

3, 6, 15, 42, 123, 366, 1095, 3282, 9843, 29526, 88575, 265722, 797163, 2391486, 7174455, 21523362, 64570083, 193710246, 581130735, 1743392202, 5230176603, 15690529806, 47071589415, 141214768242, 423644304723, 1270932914166
Offset: 0

Views

Author

Martin Wessendorf (martinw(AT)mail.ahc.umn.edu), Feb 09 2002

Keywords

Comments

An order 0 Sierpiński triangle is a triangle. Order n+1 is formed from three copies of order n by identifying pairs of corner vertices of each pair of triangles. - Allan Bickle, Aug 03 2024
This sequence represents another link from the product factor space Q X Q / {(1,1), (-1, -1)} to Sierpiński's triangle. The first "link" found was to sequence A048473. - Creighton Dement, Aug 05 2004
a(n) equals the number of orbits of the finite group PSU(3,3^n) on subsets of size 3 of the 3^(3n)+1 isotropic points of a unitary 3 space. - Paul M. Bradley, Jan 31 2017
For n >= 1, number of edges in a planar Apollonian graph at iteration n. - Andrew D. Walker, Jul 08 2017
Also the total domination number of the (n+3)-Dorogovtsev-Goltsev-Mendes graph, using the convention DGM(0) = P_2. - Eric W. Weisstein, Jan 14 2024

Examples

			Order 0 is a triangle, so a(0) = 3.
Order 1 has three corners (degree 2) and three other vertices, so a(1) = 6.
3 example graphs:                        o
                                        / \
                                       o---o
                                      / \ / \
                        o            o---o---o
                       / \          / \     / \
             o        o---o        o---o   o---o
            / \      / \ / \      / \ / \ / \ / \
           o---o    o---o---o    o---o---o---o---o
Graph:      S_1        S_2              S_3
Vertices:    3          6                15
Edges:       3          9                27
		

References

  • Peter Wessendorf and Kristina Downing, personal communication.

Crossrefs

Cf. A048473.
Cf. A007283, A029858, A067771, A193277, A233774, A233775, A246959 (Sierpiński triangle graphs).

Programs

  • Magma
    [(3/2)*(1+3^n): n in [0..30]]; // Vincenzo Librandi, Jun 20 2011
  • Mathematica
    LinearRecurrence[{4, -3}, {3, 6}, 26] (* or *)
    CoefficientList[Series[3 (1 - 2 x)/((1 - x) (1 - 3 x)), {x, 0, 25}], x] (* Michael De Vlieger, Feb 02 2017 *)
    Table[3/2 (3^n + 1), {n, 0, 20}] (* Eric W. Weisstein, Jan 14 2024 *)
    3/2 (3^Range[0, 20] + 1) (* Eric W. Weisstein, Jan 14 2024 *)

Formula

a(n) = (3/2)*(3^n + 1).
a(n) = 3 + 3^1 + 3^2 + 3^3 + 3^4 + ... + 3^n = 3 + Sum_{k=1..n} 3^n.
a(n) = 3*A007051(n).
a(0) = 3, a(n) = a(n-1) + 3^n. a(n) = (3/2)*(1+3^n). - Zak Seidov, Mar 19 2007
a(n) = 4*a(n-1) - 3*a(n-2).
G.f.: 3*(1-2*x)/((1-x)*(1-3*x)). - Colin Barker, Jan 10 2012
a(n) = A233774(2^n). - Omar E. Pol, Dec 16 2013
a(n) = 3*a(n-1) - 3. - Zak Seidov, Oct 26 2014
E.g.f.: 3*(exp(x) + exp(3*x))/2. - Stefano Spezia, Feb 09 2021
a(n) = A029858(n+1) + 3. - Allan Bickle, Aug 03 2024

Extensions

More terms from Benoit Cloitre, Feb 22 2002

A233774 Total number of vertices in the first n rows of Sierpinski gasket, with a(0) = 1.

Original entry on oeis.org

1, 3, 6, 10, 15, 19, 25, 33, 42, 46, 52, 60, 70, 78, 90, 106, 123, 127, 133, 141, 151, 159, 171, 187, 205, 213, 225, 241, 261, 277, 301, 333, 366, 370, 376, 384, 394, 402, 414, 430, 448, 456, 468, 484, 504, 520, 544, 576, 610, 618, 630, 646, 666, 682
Offset: 0

Views

Author

Omar E. Pol, Dec 16 2013

Keywords

Examples

			Illustration of initial terms:
-----------------------------------------------------
           Diagram            n     A233775(n)   a(n)
-----------------------------------------------------
              *               0         1         1
             /T\
            *---*             1         2         3
           /T\ /T\
          *---*---*           2         3         6
         /T\     /T\
        *---*   *---*         3         4        10
       /T\ /T\ /T\ /T\
      *---*---*---*---*       4         5        15
     /T\             /T\
    *---*           *---*     5         4        19
-----------------------------------------------------
After five stages the number of "black" triangles in the structure is A006046(5) = 11. The total number of vertices is 19, so a(5) = 19.
		

Crossrefs

Partial sums of A233775.

Programs

  • Mathematica
    A233775[n_] := If[n == 0, 1, (2^IntegerExponent[n, 2]+1)*2^(DigitSum[n, 2]-1)];
    Accumulate[Array[A233775, 100, 0]] (* Paolo Xausa, Aug 07 2024 *)

Formula

a(2^k) = A067771(k), k >= 0.

A337642 Coordination sequence for Even Conant Lattice with respect to origin.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 6, 7, 9, 10, 11, 11, 11, 14, 12, 12, 15, 17, 18, 18, 20, 20, 20, 21, 22, 24, 23, 24, 25, 27, 25, 23, 26, 29, 32, 31, 34, 39, 34, 30, 36, 39, 37, 39, 44, 50, 42, 40, 45, 46, 49, 52, 50, 49, 46, 46, 51, 50, 54, 56, 48, 48, 52, 54, 59, 57, 54
Offset: 0

Views

Author

N. J. A. Sloane, Sep 18 2020

Keywords

Comments

See A328078 for more information. The lattice (and therefore the sequence) is infinite, although my illustration for the initial terms shows only the first 10 generations of the construction.

Crossrefs

Extensions

More terms from Rémy Sigrist, Sep 19 2020

A370933 Number of pairs of antipodal vertices in the level n>1 Sierpiński triangle graph.

Original entry on oeis.org

6, 15, 42, 132, 456, 1680, 6432, 25152, 99456, 395520, 1577472, 6300672, 25184256, 100700160, 402726912, 1610760192, 6442745856, 25770393600, 103080394752, 412319219712, 1649272160256, 6597079203840, 26388297940992, 105553154015232, 422212540563456, 1688850011258880, 6755399743045632
Offset: 2

Views

Author

Allan Bickle, Aug 07 2024

Keywords

Comments

A level 1 Sierpiński triangle graph is a triangle. Level n+1 is formed from three copies of level n by identifying pairs of corner vertices of each pair of triangles.
Antipodal vertices are a pair of vertices at maximum distance in a graph. The diameter of the level n Sierpiński triangle graph is 2^(n-1).

Examples

			3 example graphs:                        o
                                        / \
                                       o---o
                                      / \ / \
                        o            o---o---o
                       / \          / \     / \
             o        o---o        o---o   o---o
            / \      / \ / \      / \ / \ / \ / \
           o---o    o---o---o    o---o---o---o---o
Graph:      S_1        S_2              S_3
For S_2, there are 3 pairs of corners and 3 pairs of a corner and a middle vertex, so a(2) = 6.
		

Crossrefs

Cf. A007283, A029858, A067771, A193277, A233774, A233775, A246959, A298202 (Sierpiński triangle graphs).
Cf. A375256 (antipodal pairs in Hanoi graphs).

Programs

  • Mathematica
    A370933[n_] := 3*2^(n - 3)*(2^(n - 2) + 3);
    Array[A370933, 30, 2] (* or *)
    LinearRecurrence[{6, -8}, {6, 15}, 30] (* Paolo Xausa, Sep 23 2024 *)
  • PARI
    a(n) = 3*2^(n-3)*(2^(n-2)+3); \\ Michel Marcus, Aug 08 2024

Formula

a(n) = 3*2^(n-3)*(2^(n-2)+3).
a(n) = 3*A257273(n-2).
a(n) = A375256(n-1) + 3.

Extensions

More terms from Michel Marcus, Aug 08 2024

A233777 Number of vertices in the n-th row of the toothpick structure of A233776, with a(0) = 1.

Original entry on oeis.org

1, 1, 2, 2, 3, 2, 4, 4, 5, 2, 4, 4, 6, 4, 8, 8, 9, 2, 4, 4, 6, 4, 8, 8, 10, 4, 8, 8, 12, 8, 16, 16, 17, 2, 4, 4, 6, 4, 8, 8, 10, 4, 8, 8, 12, 8, 16, 16, 18, 4, 8, 8, 12, 8, 16, 16, 20, 8, 16, 16, 24, 16, 32, 32, 33, 2, 4, 4, 6, 4, 8, 8, 10, 4, 8, 8, 12
Offset: 0

Views

Author

Omar E. Pol, Dec 25 2013

Keywords

Examples

			Illustration of initial terms:
---------------------------------------------------------
. A001316 A006046         Diagram          a(n)  A233776
---------------------------------------------------------
.            0
.                            *               1       1
.    1       1               |
.                            *               1       2
.    2       3              / \
.                          *   *             2       4
.    2       5             |   |
.                          *   *             2       6
.    4       9            / \ / \
.                        *   *   *           3       9
.    2      11           |       |
.                        *       *           2      11
.    4      15          / \     / \
.                      *   *   *   *         4      15
.    4      19         |   |   |   |
.                      *   *   *   *         4      19
.    8      27        / \ / \ / \ / \
.                    *   *   *   *   *       5      24
.    2      29       |               |
.                    *               *       2      26
.    4      33      / \             / \
.                  *   *           *   *     4      30
.
Written as an irregular triangle the sequence begins:
1;
1;
2;
2,3;
2,4,4,5;
2,4,4,6,4,8,8,9;
2,4,4,6,4,8,8,10,4,8,8,12,8,16,16,17;
2,4,4,6,4,8,8,10,4,8,8,12,8,16,16,18,4,8,8,12,8,16,16,20,8,16,16,24,16,32,32,33;
		

Crossrefs

Showing 1-7 of 7 results.