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-10 of 12 results. Next

A033991 a(n) = n*(4*n-1).

Original entry on oeis.org

0, 3, 14, 33, 60, 95, 138, 189, 248, 315, 390, 473, 564, 663, 770, 885, 1008, 1139, 1278, 1425, 1580, 1743, 1914, 2093, 2280, 2475, 2678, 2889, 3108, 3335, 3570, 3813, 4064, 4323, 4590, 4865, 5148, 5439, 5738, 6045, 6360, 6683, 7014, 7353, 7700, 8055, 8418
Offset: 0

Views

Author

Keywords

Comments

Write 0,1,2,... in a clockwise spiral; sequence gives numbers on negative x axis. (See illustration in Example.)
This sequence is the number of expressions x generated for a given modulus n in finite arithmetic. For example, n=1 (modulus 1) generates 3 expressions: 0+0=0(mod 1), 0-0=0(mod 1), 0*0=0(mod 1). By subtracting n from 4n^2, we eliminate the counting of those expressions that would include division by zero, which would be, of course, undefined. - David Quentin Dauthier, Nov 04 2007
From Emeric Deutsch, Sep 21 2010: (Start)
a(n) is also the Wiener index of the windmill graph D(3,n).
The windmill graph D(m,n) is the graph obtained by taking n copies of the complete graph K_m with a vertex in common (i.e., a bouquet of n pieces of K_m graphs). The Wiener index of a connected graph is the sum of the distances between all unordered pairs of vertices in the graph.
Example: a(2)=14; indeed if the triangles are OAB and OCD, then, denoting distance by d, we have d(O,A)=d(O,B)=d(A,B)=d(O,C)=d(O,D)=d(C,D)=1 and d(A,C)=d(A,D)=d(B,C)=d(B,D)=2. The Wiener index of D(m,n) is (1/2)n(m-1)[(m-1)(2n-1)+1]. For the Wiener indices of D(4,n), D(5,n), and D(6,n) see A152743, A028994, and A180577, respectively. (End)
Even hexagonal numbers divided by 2. - Omar E. Pol, Aug 18 2011
For n > 0, a(n) equals the number of length 3*n binary words having exactly two 0's with the n first bits having at most one 0. For example a(2) = 14. Words are 010111, 011011, 011101, 011110, 100111, 101011, 101101, 101110, 110011, 110101, 110110, 111001, 111010, 111100. - Franck Maminirina Ramaharo, Mar 09 2018
For n >= 1, the continued fraction expansion of sqrt(a(n)) is [2n-1; {1, 2, 1, 4n-2}]. For n=1, this collapses to [1; {1, 2}]. - Magus K. Chu, Sep 06 2022

Examples

			Clockwise spiral (with sequence terms parenthesized) begins
   16--17--18--19
    |
   15   4---5---6
    |   |       |
  (14) (3) (0)  7
    |   |   |   |
   13   2---1   8
    |           |
   12--11--10---9
		

References

  • S. M. Ellerstein, The square spiral, J. Recreational Mathematics 29 (#3, 1998) 188; 30 (#4, 1999-2000), 246-250.
  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics. Addison-Wesley, Reading, MA, 2nd ed., 1994, p. 99.

Crossrefs

Sequences on the four axes of the square spiral: Starting at 0: A001107, A033991, A007742, A033954; starting at 1: A054552, A054556, A054567, A033951.
Sequences on the four diagonals of the square spiral: Starting at 0: A002939 = 2*A000384, A016742 = 4*A000290, A002943 = 2*A014105, A033996 = 8*A000217; starting at 1: A054554, A053755, A054569, A016754.
Sequences obtained by reading alternate terms on the X and Y axes and the two main diagonals of the square spiral: Starting at 0: A035608, A156859, A002378 = 2*A000217, A137932 = 4*A002620; starting at 1: A317186, A267682, A002061, A080335.

Programs

Formula

a(n) = A007742(-n) = A074378(2n-1) = A014848(2n).
G.f.: x*(3+5*x)/(1-x)^3. - Michael Somos, Mar 03 2003
a(n) = A014635(n)/2. - Zerinvary Lajos, Jan 16 2007
From Zerinvary Lajos, Jun 12 2007: (Start)
a(n) = A000326(n) + A005476(n).
a(n) = A049452(n) - A001105(n). (End)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 2. - Harvey P. Dale, Oct 10 2011
a(n) = A118729(8n+2). - Philippe Deléham, Mar 26 2013
From Ilya Gutkovskiy, Dec 04 2016: (Start)
E.g.f.: x*(3 + 4*x)*exp(x).
Sum_{n>=1} 1/a(n) = 3*log(2) - Pi/2 = 0.50864521488... (End)
a(n) = Sum_{i=n..3n-1} i. - Wesley Ivan Hurt, Dec 04 2016
From Franck Maminirina Ramaharo, Mar 09 2018: (Start)
a(n) = binomial(2*n, 2) + 2*n^2.
a(n) = A054556(n+1) - 1. (End)
Sum_{n>=1} (-1)^(n+1)/a(n) = (Pi + log(3-2*sqrt(2)))/sqrt(2) - log(2). - Amiram Eldar, Mar 20 2022

Extensions

Two remarks combined into one by Emeric Deutsch, Oct 03 2010

A028994 Even 10-gonal (or decagonal) numbers.

Original entry on oeis.org

0, 10, 52, 126, 232, 370, 540, 742, 976, 1242, 1540, 1870, 2232, 2626, 3052, 3510, 4000, 4522, 5076, 5662, 6280, 6930, 7612, 8326, 9072, 9850, 10660, 11502, 12376, 13282, 14220, 15190, 16192, 17226, 18292, 19390, 20520, 21682, 22876, 24102, 25360, 26650, 27972
Offset: 0

Views

Author

Keywords

Comments

a(n) (for n >= 1) is also the Wiener index of the windmill graph D(5, n). The windmill graph D(m, n) is the graph obtained by taking n copies of the complete graph K_m with a vertex in common (i.e. a bouquet of n pieces of K_m graphs). The Wiener index of a connected graph is the sum of distances between all unordered pairs of vertices in the graph. The Wiener index of D(m, n) is (1/2)n(m-1)[(m-1)(2n-1)+1]. For the Wiener indices of D(3, n), D(4, n), and D(6, n) see A033991, A152743, and A180577, respectively. - Emeric Deutsch, Sep 21 2010

Crossrefs

Programs

Formula

a(n) = 2*n*(8*n - 3). - Omar E. Pol, Aug 19 2011
G.f.: -2*x*(11*x+5)/(x-1)^3. - Colin Barker, Nov 18 2012
Sum_{n>=1} 1/a(n) = (8*log(2) - (sqrt(2)-1)*Pi - 2*sqrt(2)*log(1+sqrt(2)))/12. - Amiram Eldar, Feb 27 2022
From Elmo R. Oliveira, Oct 27 2024: (Start)
E.g.f.: 2*x*(5 + 8*x)*exp(x).
a(n) = 2*A139273(n) = A001107(2*n).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 2. (End)

A102214 Expansion of (1 + 4*x + 4*x^2)/((1+x)*(1-x)^3).

Original entry on oeis.org

1, 6, 16, 30, 49, 72, 100, 132, 169, 210, 256, 306, 361, 420, 484, 552, 625, 702, 784, 870, 961, 1056, 1156, 1260, 1369, 1482, 1600, 1722, 1849, 1980, 2116, 2256, 2401, 2550, 2704, 2862, 3025, 3192, 3364, 3540, 3721, 3906, 4096, 4290, 4489, 4692, 4900
Offset: 0

Views

Author

Creighton Dement, Feb 17 2005

Keywords

Comments

A floretion-generated sequence.
a(n) gives the number of triples (x,y,x+y) with positive integers satisfying x < y and x + y <= 3*n. - Marcus Schmidt (marcus-schmidt(AT)gmx.net), Jan 13 2006
Number of different partitions of numbers x + y = z such that {x,y,z} are integers {1,2,3,...,3n} and z > y > x. - Artur Jasinski, Feb 09 2010
Second bisection preceded by zero is A152743. - Bruno Berselli, Oct 25 2011
a(n) has no final digit 3, 7, 8. - Paul Curtz, Mar 04 2020
One odd followed by three evens.
From Paul Curtz, Mar 06 2020: (Start)
b(n) = 0, 1, 6, 16, 30, 49, ... = 0, a(n).
( 25, 12, 4, 0, 1, 6, 16, 30, ...
-13, -8, -4 1, 5, 10, 14, 19, ...
5, 4, 5, 4, 5, 4, 5, 4, ... .)
b(-n) = 0, 4, 12, 25, 42, 64, 90, 121, ... .
A154589(n) are in the main diagonal of b(n) and b(-n). (End)

Crossrefs

Programs

  • Magma
    [(6*n*(3*n+4)+(-1)^n+7)/8: n in [0..60]]; // Vincenzo Librandi, Oct 26 2011
    
  • Mathematica
    aa = {}; Do[i = 0; Do[Do[Do[If[x + y == z, i = i + 1], {x, y + 1, 3 n}], {y, 1, 3 n}], {z, 1, 3 n}]; AppendTo[aa, i], {n, 1, 20}]; aa (* Artur Jasinski, Feb 09 2010 *)
  • PARI
    a(n)=(6*n*(3*n+4)+(-1)^n+7)/8 \\ Charles R Greathouse IV, Apr 16 2020

Formula

G.f.: -(4*x^2 + 4*x + 1)/((x+1)*(x-1)^3) = (1+2*x)^2/((1+x)*(1-x)^3).
a(2n) = A016778(n) = (3n+1)^2.
a(n) + a(n+1) = A038764(n+1).
a(n) = floor( (3*n+2)/2 ) * ceiling( (3*n+2)/2 ). - Marcus Schmidt (marcus-schmidt(AT)gmx.net), Jan 13 2006
a(n) = (6*n*(3*n+4) + (-1)^n+7)/8. - Bruno Berselli, Oct 25 2011
a(n) = A198392(n) + A198392(n-1). - Bruno Berselli, Nov 06 2011
From Paul Curtz, Mar 04 2020: (Start)
a(n) = A006578(n) + A001859(n) + A077043(n+1).
a(n) = A274221(2+2*n).
a(20+n) - a(n) = 30*(32+3*n).
a(1+2*n) = 3*(1+n)*(2+3*n).
a(n) = A047237(n) * A047251(n).
a(n) = A001651(n+1) * A032766(n).(End)
E.g.f.: ((4 + 21*x + 9*x^2)*cosh(x) + 3*(1 + 7*x + 3*x^2)*sinh(x))/4. - Stefano Spezia, Mar 04 2020

Extensions

Definition rewritten by Bruno Berselli, Oct 25 2011

A152744 7 times pentagonal numbers: a(n) = 7*n*(3*n-1)/2.

Original entry on oeis.org

0, 7, 35, 84, 154, 245, 357, 490, 644, 819, 1015, 1232, 1470, 1729, 2009, 2310, 2632, 2975, 3339, 3724, 4130, 4557, 5005, 5474, 5964, 6475, 7007, 7560, 8134, 8729, 9345, 9982, 10640, 11319, 12019, 12740, 13482, 14245, 15029, 15834, 16660, 17507, 18375, 19264
Offset: 0

Views

Author

Omar E. Pol, Dec 12 2008

Keywords

Crossrefs

Similar sequences are listed in A316466.

Programs

  • Magma
    [7*n*(3*n-1)/2: n in [0..50]]; // G. C. Greubel, Sep 01 2018
  • Mathematica
    Table[7n (3n-1)/2,{n,0,50}] (* or *) LinearRecurrence[{3,-3,1},{0,7,35},50] (* Harvey P. Dale, Aug 08 2013 *)
  • PARI
    a(n)=7*n*(3*n-1)/2 \\ Charles R Greathouse IV, Jun 17 2017
    

Formula

a(n) = (21*n^2 - 7*n)/2 = A000326(n)*7.
a(n) = a(n-1) + 21*n - 14 (with a(0)=0). - Vincenzo Librandi, Nov 26 2010
G.f.: 7*x*(1+2*x)/(1-x)^3. - Colin Barker, Feb 14 2012
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>2. - Harvey P. Dale, Aug 08 2013
a(n) = Sum_{i = 2..8} P(i,n), where P(i,m) = m*((i-2)*m-(i-4))/2. - Bruno Berselli, Jul 04 2018
E.g.f.: 7*x*(2+3*x)/2. - G. C. Greubel, Sep 01 2018
From Amiram Eldar, Feb 27 2022: (Start)
Sum_{n>=1} 1/a(n) = (9*log(3) - sqrt(3)*Pi)/21.
Sum_{n>=1} (-1)^(n+1)/a(n) = 2*(Pi*sqrt(3) - 6*log(2))/21. (End)

A153792 12 times pentagonal numbers: a(n) = 6*n*(3*n-1).

Original entry on oeis.org

0, 12, 60, 144, 264, 420, 612, 840, 1104, 1404, 1740, 2112, 2520, 2964, 3444, 3960, 4512, 5100, 5724, 6384, 7080, 7812, 8580, 9384, 10224, 11100, 12012, 12960, 13944, 14964, 16020, 17112, 18240, 19404, 20604, 21840, 23112, 24420
Offset: 0

Views

Author

Omar E. Pol, Jan 01 2009

Keywords

Comments

For n>=1, a(n) is the first Zagreb index of the triangular grid graph T[n] (see the West reference, p. 390). The first Zagreb index of a simple connected graph is the sum of the squared degrees of its vertices. Alternately, it is the sum of the degree sums d(i)+d(j) over all edges ij of the graph. - Emeric Deutsch, Nov 10 2016
The M-polynomial of the triangular grid graph T[n] is M(T[n], x, y) = 6*x^2*y^4 + 3*(n-1)*x^4*y^4 +6*(n-2)*x^4*y^6+3*(n-2)*(n-3)*x^6*y^6/2. - Emeric Deutsch, May 09 2018
This is the number of overlapping six sphinx tiled shapes in the sphinx tessellated hexagon described in A291582. - Craig Knecht, Sep 13 2017
a(n) is the number of words of length 3n over the alphabet {a,b,c}, where the number of b's plus the number of c's is 2. - Juan Camacho, Mar 03 2021
Sequence found by reading the line from 0, in the direction 0, 12, ..., in the square spiral whose vertices are the generalized 11-gonal numbers A195160. - Omar E. Pol, Mar 12 2021

References

  • D. B. West, Introduction to Graph Theory, 2nd edition, Prentice-Hall, 2001.

Crossrefs

Programs

Formula

a(n) = 18*n^2 - 6*n = 12*A000326(n) = 6*A049450(n) = 4*A062741(n) = 3*A033579(n) = 2*A152743(n).
a(n) = 36*n + a(n-1) - 24 (with a(0)=0). - Vincenzo Librandi, Aug 03 2010
G.f.: 12*x*(1 + 2*x)/(1-x)^3. - Colin Barker, Feb 14 2012
a(0)=0, a(1)=12, a(2)=60; for n>2, a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Harvey P. Dale, Mar 11 2012
E.g.f.: 6*x*(2 + 3*x)*exp(x). - G. C. Greubel, Aug 29 2016
a(n) = A291582(n) - A195321(n) for n > 0. - Craig Knecht, Sep 13 2017
a(n) = A195321(n) - A008588(n). - Omar E. Pol, Mar 12 2021
From Amiram Eldar, May 05 2025: (Start)
Sum_{n>=1} 1/a(n) = log(3)/4 - Pi/(12*sqrt(3)).
Sum_{n>=1} (-1)^(n+1)/a(n) = Pi/(6*sqrt(3)) - log(2)/3. (End)

A180577 The Wiener index of the windmill graph D(6,n). The windmill graph D(m,n) is the graph obtained by taking n copies of the complete graph K_m with a vertex in common (i.e., a bouquet of n pieces of K_m graphs).

Original entry on oeis.org

15, 80, 195, 360, 575, 840, 1155, 1520, 1935, 2400, 2915, 3480, 4095, 4760, 5475, 6240, 7055, 7920, 8835, 9800, 10815, 11880, 12995, 14160, 15375, 16640, 17955, 19320, 20735, 22200, 23715, 25280, 26895, 28560, 30275, 32040, 33855, 35720, 37635, 39600, 41615, 43680, 45795
Offset: 1

Views

Author

Emeric Deutsch, Sep 21 2010

Keywords

Comments

The Wiener index of a connected graph is the sum of distances between all unordered pairs of vertices in the graph.
The Wiener polynomial of D(m,n) is (1/2)n(m-1)t[(m-1)(n-1)t+m].
The Wiener index of D(m,n) is (1/2)n(m-1)[(m-1)(2n-1)+1].
For the Wiener indices of D(3,n), D(4,n), and D(5,n) see A033991, A152743, and A028994, respectively.

Crossrefs

Programs

Formula

a(n) = 5*n*(5*n-2).
G.f.: -5*x*(7*x+3)/(x-1)^3. - Colin Barker, Oct 30 2012
From Elmo R. Oliveira, Apr 03 2025: (Start)
E.g.f.: 5*exp(x)*x*(3 + 5*x).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 3. (End)

Extensions

More terms from Elmo R. Oliveira, Apr 03 2025

A274221 List of quadruples: 3*n*(3*n-1), 3*n*(3*n+1), (3*n+1)^2, (3*n+2)^2.

Original entry on oeis.org

0, 0, 1, 4, 6, 12, 16, 25, 30, 42, 49, 64, 72, 90, 100, 121, 132, 156, 169, 196, 210, 240, 256, 289, 306, 342, 361, 400, 420, 462, 484, 529, 552, 600, 625, 676, 702, 756, 784, 841, 870, 930, 961, 1024, 1056, 1122, 1156, 1225, 1260, 1332, 1369, 1444, 1482
Offset: 0

Views

Author

Luce ETIENNE, Sep 14 2016

Keywords

Comments

For the formulae of the permutations of A152743, A045945, A016778 and A016790, see the link.

Crossrefs

Programs

  • Magma
    &cat [[3*n*(3*n-1), 3*n*(3*n+1), (3*n+1)^2, (3*n+2)^2]: n in [0..15]]; // Bruno Berselli, Sep 15 2016
  • Mathematica
    Flatten[Table[{3 n (3 n - 1), 3 n (3 n + 1), (3 n + 1)^2, (3 n + 2)^2}, {n, 0, 15}]] (* Bruno Berselli, Sep 15 2016 *)

Formula

G.f.: x^2*(1+3*x+x^2+3*x^3+x^4)/((1-x)^3*(1+x)^2*(1+x^2)). - Robert Israel, Sep 15 2016
a(n) = (18*n^2-18*n+1-3*(2*n-1)*(-1)^n-4*(-1)^((2*n-1+(-1)^n)/4))/32. Therefore: a(2k) = (18*k^2-12*k+1-(-1)^k)/8, a(2k+1) = (18*k^2+12*k+1-(-1)^k)/8.
a(n) = A064412(n) - A269064(n) for n>0.
E.g.f.: ((9*x^2 - 3*x - 1)*sinh(x) + (9*x^2 + 3*x + 2)*cosh(x) - 2*(sin(x) + cos(x)))/16. - Stefano Spezia, Nov 07 2022

A384683 Decimal expansion of Sum_{i >= 1} 1/(3*i-1) - 1/(3*i).

Original entry on oeis.org

2, 4, 7, 0, 0, 6, 2, 5, 0, 2, 9, 5, 0, 1, 8, 5, 3, 7, 2, 6, 5, 2, 7, 6, 2, 4, 2, 1, 8, 7, 5, 7, 0, 2, 3, 0, 2, 7, 6, 4, 0, 0, 9, 0, 4, 2, 2, 9, 2, 5, 1, 2, 9, 6, 6, 0, 5, 6, 9, 9, 6, 7, 7, 5, 8, 7, 3, 9, 3, 2, 8, 3, 0, 8, 8, 2, 4, 5, 5, 0, 2, 8, 2, 2, 7, 8, 7, 0, 4, 6, 0, 3, 8, 1, 8, 9, 3, 4, 9, 5, 8, 4, 6, 1, 4, 6, 1, 2, 1, 1, 9, 4, 6, 7, 8, 4
Offset: 0

Views

Author

Jason Bard, Jun 06 2025

Keywords

Comments

Generalization of infinite sum generating A002162 (natural logarithm of 2). That sum is Sum_{i >= 1} 1/(k*i-1) - 1/(k*i), where k = 2. Here, we set k = 3.

Examples

			0.24700625029501853726527624218757023027640090422925...
		

Crossrefs

Programs

  • Mathematica
    RealDigits[1/2 * Log[3] - (Sqrt[3]/18) * Pi, 10, 1000][[1]]
  • PARI
    log(3)/2 - Pi/(6*sqrt(3)) \\ Amiram Eldar, Jun 07 2025

Formula

Equals (1/2) * log(3) - sqrt(3) * Pi / 18.
Equals Sum_{i>=1} 1/A152743(i).
Equals A294514/3. - Hugo Pfoertner, Jun 07 2025

A214581 Triangle read by rows: T(n,k) is the number of unordered pairs of nodes at distance k in the circumcoronene H(n) (n=1,2,3,4,5; see definition in the Klavzar papers).

Original entry on oeis.org

6, 6, 3, 30, 48, 57, 54, 45, 30, 12, 72, 126, 165, 186, 195, 186, 168, 138, 102, 66, 27, 132, 240, 327, 390, 435, 456, 462, 444, 414, 366, 309, 246, 177, 114, 48, 210, 390, 543, 666, 765, 834, 882, 900, 900, 870, 825, 756, 675, 582, 480, 378, 270, 174, 75
Offset: 1

Views

Author

Emeric Deutsch, Aug 31 2012

Keywords

Comments

The entries in row n are the coefficients of the Wiener polynomial of the corresponding graph.
Row n contains 4n-1 entries.
T(n,1) = 9n^2-3n = A152743(n).
T(n,2) = 6n(3n-2)= A153796(n).
T(n,3) = 3(9n^2-9n+1)= 3*A069131(n) (for n>5 this is a conjecture).
T(n,2n) = n(7n^2-1) = 6*A004126(n) (for n>5 this is a conjecture).
T(n,4n-2) = 6(n^2+n-1) = 6*A028387(n-1) (for n>5 this is a conjecture).
T(n,4n-1) = 3n^2 = A033428(n) (for n>5 this is a conjecture).
Sum(k*T(n,k), k>=1) = A143366(n).

Crossrefs

Formula

The entries have been obtained by using the Maple Graph Theory package for finding the distance matrix of each of the five graphs H(n) (n=1,2,3,4,5). The given Maple program yields the Wiener polynomial of H(2) (having as coefficients the entries in row 2).

A263135 The maximum number of penny-to-penny connections when n pennies are placed on the vertices of a hexagonal tiling.

Original entry on oeis.org

0, 0, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 15, 16, 17, 19, 20, 21, 23, 24, 25, 27, 28, 30, 31, 32, 34, 35, 36, 38, 39, 41, 42, 43, 45, 46, 48, 49, 50, 52, 53, 55, 56, 57, 59, 60, 62, 63, 64, 66, 67, 69, 70, 72, 73, 74, 76, 77, 79, 80, 81, 83, 84, 86, 87, 89, 90
Offset: 0

Views

Author

Peter Kagey, Oct 10 2015

Keywords

Comments

a(A033581(n)) = A152743(n).
1 <= a(n+1) - a(n) <=2 for all n > 0.
Lim_{n -> infinity} a(n)/n = 3/2.
Conjecture: a(2*n) - A047932(n) = A216256(n) for n > 0.

Examples

			.           |            |     o o     .
.           |      o o   |  o o   o o  .
.    o o    |   o o   o  | o   o o   o .
.   o   o   |  o   o o   |  o o   o o  .
.    o o    |   o o      | o   o o   o .
.           |            |  o o   o o  .
.           |            |     o o     .
.           |            |             .
. f(6) = 6  | f(10) = 11 | f(24) = 30  .
		

Crossrefs

Cf. A047932 (triangular tiling), A123663 (square tiling).
Showing 1-10 of 12 results. Next