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 13 results. Next

A000583 Fourth powers: a(n) = n^4.

Original entry on oeis.org

0, 1, 16, 81, 256, 625, 1296, 2401, 4096, 6561, 10000, 14641, 20736, 28561, 38416, 50625, 65536, 83521, 104976, 130321, 160000, 194481, 234256, 279841, 331776, 390625, 456976, 531441, 614656, 707281, 810000, 923521, 1048576, 1185921
Offset: 0

Views

Author

Keywords

Comments

Figurate numbers based on 4-dimensional regular convex polytope called the 4-measure polytope, 4-hypercube or tesseract with Schlaefli symbol {4,3,3}. - Michael J. Welch (mjw1(AT)ntlworld.com), Apr 01 2004
Totally multiplicative sequence with a(p) = p^4 for prime p. - Jaroslav Krizek, Nov 01 2009
The binomial transform yields A058649. The inverse binomial transforms yields the (finite) 0, 1, 14, 36, 24, the 4th row in A019538 and A131689. - R. J. Mathar, Jan 16 2013
Generate Pythagorean triangles with parameters a and b to get sides of lengths x = b^2-a^2, y = 2*a*b, and z = a^2 + b^2. In particular use a=n-1 and b=n for a triangle with sides (x1,y1,z1) and a=n and b=n+1 for another triangle with sides (x2,y2,z2). Then x1*x2 + y1*y2 + z1*z2 = 8*a(n). - J. M. Bergot, Jul 22 2013
For n > 0, a(n) is the largest integer k such that k^4 + n is a multiple of k + n. Also, for n > 0, a(n) is the largest integer k such that k^2 + n^2 is a multiple of k + n^2. - Derek Orr, Sep 04 2014
Does not satisfy Benford's law [Ross, 2012]. - N. J. A. Sloane, Feb 08 2017
a(n+2)/2 is the area of a trapezoid with vertices at (T(n), T(n+1)), (T(n+1), T(n)), (T(n+1), T(n+2)), and (T(n+2), T(n+1)) with T(n)=A000292(n) for n >= 0. - J. M. Bergot, Feb 16 2018

References

  • John H. Conway and Richard K. Guy, The Book of Numbers, New York: Springer-Verlag, 1996. See p. 64.
  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics. Addison-Wesley, Reading, MA, 1990, p. 255; 2nd. ed., p. 269. Worpitzky's identity (6.37).
  • Dov Juzuk, Curiosa 56: An interesting observation, Scripta Mathematica 6 (1939), 218.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, Page 47.

Crossrefs

Programs

Formula

a(n) = A123865(n)+1 = A002523(n)-1.
Multiplicative with a(p^e) = p^(4e). - David W. Wilson, Aug 01 2001
G.f.: x*(1 + 11*x + 11*x^2 + x^3)/(1 - x)^5. More generally, g.f. for n^m is Euler(m, x)/(1-x)^(m+1), where Euler(m, x) is Eulerian polynomial of degree m (cf. A008292).
Dirichlet generating function: zeta(s-4). - Franklin T. Adams-Watters, Sep 11 2005
E.g.f.: (x + 7*x^2 + 6*x^3 + x^4)*e^x. More generally, the general form for the e.g.f. for n^m is phi_m(x)*e^x, where phi_m is the exponential polynomial of order n. - Franklin T. Adams-Watters, Sep 11 2005
Sum_{k>0} 1/a(k) = Pi^4/90 = A013662. - Jaume Oliver Lafont, Sep 20 2009
a(n) = C(n+3,4) + 11*C(n+2,4) + 11*C(n+1,4) + C(n,4). [Worpitzky's identity for powers of 4. See, e.g., Graham et al., eq. (6.37). - Wolfdieter Lang, Jul 17 2019]
a(n) = n*A177342(n) - Sum_{i=1..n-1} A177342(i) - (n - 1), with n > 1. - Bruno Berselli, May 07 2010
a(n) + a(n+1) + 1 = 2*A002061(n+1)^2. - Charlie Marion, Jun 13 2013
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) + 24. - Ant King, Sep 23 2013
From Amiram Eldar, Jan 20 2021: (Start)
Sum_{n>=1} (-1)^(n+1)/a(n) = 7*Pi^4/720 (A267315).
Product_{n>=2} (1 - 1/a(n)) = sinh(Pi)/(4*Pi). (End)

A000537 Sum of first n cubes; or n-th triangular number squared.

Original entry on oeis.org

0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, 11025, 14400, 18496, 23409, 29241, 36100, 44100, 53361, 64009, 76176, 90000, 105625, 123201, 142884, 164836, 189225, 216225, 246016, 278784, 314721, 354025, 396900, 443556, 494209, 549081
Offset: 0

Views

Author

Keywords

Comments

Number of parallelograms in an n X n rhombus. - Matti De Craene (Matti.DeCraene(AT)rug.ac.be), May 14 2000
Or, number of orthogonal rectangles in an n X n checkerboard, or rectangles in an n X n array of squares. - Jud McCranie, Feb 28 2003. Compare A085582.
Also number of 2-dimensional cage assemblies (cf. A059827, A059860).
The n-th triangular number T(n) = Sum_{r=1..n} r = n(n+1)/2 satisfies the relations: (i) T(n) + T(n-1) = n^2 and (ii) T(n) - T(n-1) = n by definition, so that n^2*n = n^3 = {T(n)}^2 - {T(n-1)}^2 and by summing on n we have Sum_{ r = 1..n } r^3 = {T(n)}^2 = (1+2+3+...+n)^2 = (n*(n+1)/2)^2. - Lekraj Beedassy, May 14 2004
Number of 4-tuples of integers from {0,1,...,n}, without repetition, whose last component is strictly bigger than the others. Number of 4-tuples of integers from {1,...,n}, with repetition, whose last component is greater than or equal to the others.
Number of ordered pairs of two-element subsets of {0,1,...,n} without repetition.
Number of ordered pairs of 2-element multisubsets of {1,...,n} with repetition.
1^3 + 2^3 + 3^3 + ... + n^3 = (1 + 2 + 3 + ... + n)^2.
a(n) is the number of parameters needed in general to know the Riemannian metric g of an n-dimensional Riemannian manifold (M,g), by knowing all its second derivatives; even though to know the curvature tensor R requires (due to symmetries) (n^2)*(n^2-1)/12 parameters, a smaller number (and a 4-dimensional pyramidal number). - Jonathan Vos Post, May 05 2006
Also number of hexagons with vertices in an hexagonal grid with n points in each side. - Ignacio Larrosa Cañestro, Oct 15 2006
Number of permutations of n distinct letters (ABCD...) each of which appears twice with 4 and n-4 fixed points. - Zerinvary Lajos, Nov 09 2006
With offset 1 = binomial transform of [1, 8, 19, 18, 6, ...]. - Gary W. Adamson, Dec 03 2008
The sequence is related to A000330 by a(n) = n*A000330(n) - Sum_{i=0..n-1} A000330(i): this is the case d=1 in the identity n*(n*(d*n-d+2)/2) - Sum_{i=0..n-1} i*(d*i-d+2)/2 = n*(n+1)*(2*d*n-2*d+3)/6. - Bruno Berselli, Apr 26 2010, Mar 01 2012
From Wolfdieter Lang, Jan 11 2013: (Start)
For sums of powers of positive integers S(k,n) := Sum_{j=1..n}j^k one has the recurrence S(k,n) = (n+1)*S(k-1,n) - Sum_{l=1..n} S(k-1,l), n >= 1, k >= 1.
This was used for k=4 by Ibn al-Haytham in an attempt to compute the volume of the interior of a paraboloid. See the Strick reference where the trick he used is shown, and the W. Lang link.
This trick generalizes immediately to arbitrary powers k. For k=3: a(n) = (n+1)*A000330(n) - Sum_{l=1..n} A000330(l), which coincides with the formula given in the previous comment by Berselli. (End)
Regarding to the previous contribution, see also Matem@ticamente in Links field and comments on this recurrences in similar sequences (partial sums of n-th powers). - Bruno Berselli, Jun 24 2013
A rectangular prism with sides A000217(n), A000217(n+1), and A000217(n+2) has surface area 6*a(n+1). - J. M. Bergot, Aug 07 2013, edited with corrected indices by Antti Karttunen, Aug 09 2013
A formula for the r-th successive summation of k^3, for k = 1 to n, is (6*n^2+r*(6*n+r-1)*(n+r)!)/((r+3)!*(n-1)!), (H. W. Gould). - Gary Detlefs, Jan 02 2014
Note that this sequence and its formula were known to (and possibly discovered by) Nicomachus, predating Ibn al-Haytham by 800 years. - Charles R Greathouse IV, Apr 23 2014
a(n) is the number of ways to paint the sides of a nonsquare rectangle using at most n colors. Cf. A039623. - Geoffrey Critzer, Jun 18 2014
For n > 0: A256188(a(n)) = A000217(n) and A256188(m) != A000217(n) for m < a(n), i.e., positions of first occurrences of triangular numbers in A256188. - Reinhard Zumkeller, Mar 26 2015
There is no cube in this sequence except 0 and 1. - Altug Alkan, Jul 02 2016
Also the number of chordless cycles in the complete bipartite graph K_{n+1,n+1}. - Eric W. Weisstein, Jan 02 2018
a(n) is the sum of the elements in the multiplication table [0..n] X [0..n]. - Michel Marcus, May 06 2021

Examples

			G.f. = x + 9*x^2 + 36*x^3 + 100*x^4 + 225*x^5 + 441*x^6 + ... - _Michael Somos_, Aug 29 2022
		

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 813.
  • Avner Ash and Robert Gross, Summing it up, Princeton University Press, 2016, p. 62, eq. (6.3) for k=3.
  • A. T. Benjamin and J. J. Quinn, Proofs that really count: the art of combinatorial proof, M.A.A. 2003, p. 110ff.
  • L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 155.
  • John H. Conway and R. K. Guy, The Book of Numbers, Copernicus Press, pp. 36, 58.
  • Clifford Pickover, "Wonders of Numbers, Adventures in Mathematics, Mind and Meaning," Oxford University Press, 2001, p. 325.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • H. K. Strick, Geschichten aus der Mathematik II, Spektrum Spezial 3/11, p. 13.
  • D. Wells, You Are A Mathematician, "Counting rectangles in a rectangle", Problem 8H, pp. 240; 254, Penguin Books 1995.

Crossrefs

Convolution of A000217 and A008458.
Row sums of triangles A094414 and A094415.
Second column of triangle A008459.
Row 3 of array A103438.
Cf. A236770 (see crossrefs).

Programs

  • GAP
    List([0..40],n->(n*(n+1)/2)^2); # Muniru A Asiru, Dec 05 2018
    
  • Haskell
    a000537 = a000290 . a000217  -- Reinhard Zumkeller, Mar 26 2015
    
  • Magma
    [(n*(n+1)/2)^2: n in [0..50]]; // Wesley Ivan Hurt, Jun 06 2014
    
  • Maple
    a:= n-> (n*(n+1)/2)^2:
    seq(a(n), n=0..40);
  • Mathematica
    Accumulate[Range[0, 50]^3] (* Harvey P. Dale, Mar 01 2011 *)
    f[n_] := n^2 (n + 1)^2/4; Array[f, 39, 0] (* Robert G. Wilson v, Nov 16 2012 *)
    Table[CycleIndex[{{1, 2, 3, 4}, {3, 2, 1, 4}, {1, 4, 3, 2}, {3, 4, 1, 2}}, s] /. Table[s[i] -> n, {i, 1, 2}], {n, 0, 30}] (* Geoffrey Critzer, Jun 18 2014 *)
    Accumulate @ Range[0, 50]^2 (* Waldemar Puszkarz, Jan 24 2015 *)
    Binomial[Range[20], 2]^2 (* Eric W. Weisstein, Jan 02 2018 *)
    LinearRecurrence[{5, -10, 10, -5, 1}, {0, 1, 9, 36, 100}, 20] (* Eric W. Weisstein, Jan 02 2018 *)
    CoefficientList[Series[-((x (1 + 4 x + x^2))/(-1 + x)^5), {x, 0, 20}], x] (* Eric W. Weisstein, Jan 02 2018 *)
  • PARI
    a(n)=(n*(n+1)/2)^2
    
  • Python
    def A000537(n): return (n*(n+1)>>1)**2 # Chai Wah Wu, Oct 20 2023

Formula

a(n) = (n*(n+1)/2)^2 = A000217(n)^2 = Sum_{k=1..n} A000578(k), that is, 1^3 + 2^3 + 3^3 + ... + n^3 = (1 + 2 + 3 + ... + n)^2.
G.f.: (x+4*x^2+x^3)/(1-x)^5. - Simon Plouffe in his 1992 dissertation
a(n) = Sum ( Sum ( 1 + Sum (6*n) ) ), rephrasing the formula in A000578. - Xavier Acloque, Jan 21 2003
a(n) = Sum_{i=1..n} Sum_{j=1..n} i*j, row sums of A127777. - Alexander Adamchuk, Oct 24 2004
a(n) = A035287(n)/4. - Zerinvary Lajos, May 09 2007
This sequence could be obtained from the general formula n*(n+1)*(n+2)*(n+3)*...*(n+k)*(n*(n+k) + (k-1)*k/6)/((k+3)!/6) at k=1. - Alexander R. Povolotsky, May 17 2008
G.f.: x*F(3,3;1;x). - Paul Barry, Sep 18 2008
Sum_{k > 0} 1/a(k) = (4/3)*(Pi^2-9). - Jaume Oliver Lafont, Sep 20 2009
a(n) = Sum_{1 <= k <= m <= n} A176271(m,k). - Reinhard Zumkeller, Apr 13 2010
a(n) = Sum_{i=1..n} J_3(i)*floor(n/i), where J_ 3 is A059376. - Enrique Pérez Herrero, Feb 26 2012
a(n) = Sum_{i=1..n} Sum_{j=1..n} Sum_{k=1..n} min(i,j,k). - Enrique Pérez Herrero, Feb 26 2013 [corrected by Ridouane Oudra, Mar 05 2025]
a(n) = 6*C(n+2,4) + C(n+1,2) = 6*A000332(n+2) + A000217(n), (Knuth). - Gary Detlefs, Jan 02 2014
a(n) = -Sum_{j=1..3} j*Stirling1(n+1,n+1-j)*Stirling2(n+3-j,n). - Mircea Merca, Jan 25 2014
Sum_{n>=1} (-1)^(n+1)/a(n) = 4*(3-4*log(2)). - Vaclav Kotesovec, Feb 13 2015
a(n)*((s-2)*(s-3)/2) = P(3, P(s, n+1)) - P(s, P(3, n+1)), where P(s, m) = ((s-2)*m^2-(s-4)*m)/2 is the m-th s-gonal number. For s=7, 10*a(n) = A000217(A000566(n+1)) - A000566(A000217(n+1)). - Bruno Berselli, Aug 04 2015
From Ilya Gutkovskiy, Jul 03 2016: (Start)
E.g.f.: x*(4 + 14*x + 8*x^2 + x^3)*exp(x)/4.
Dirichlet g.f.: (zeta(s-4) + 2*zeta(s-3) + zeta(s-2))/4. (End)
a(n) = (Bernoulli(4, n+1) - Bernoulli(4, 1))/4, n >= 0, with the Bernoulli polynomial B(4, x) from row n=4 of A053382/A053383. See, e.g., the Ash-Gross reference, p. 62, eq. (6.3) for k=3. - Wolfdieter Lang, Mar 12 2017
a(n) = A000217((n+1)^2) - A000217(n+1)^2. - Bruno Berselli, Aug 31 2017
a(n) = n*binomial(n+2, 3) + binomial(n+2, 4) + binomial(n+1, 4). - Tony Foster III, Nov 14 2017
Another identity: ..., a(3) = (1/2)*(1*(2+4+6)+3*(4+6)+5*6) = 36, a(4) = (1/2)*(1*(2+4+6+8)+3*(4+6+8)+5*(6+8)+7*(8)) = 100, a(5) = (1/2)*(1*(2+4+6+8+10)+3*(4+6+8+10)+5*(6+8+10)+7*(8+10)+9*(10)) = 225, ... - J. M. Bergot, Aug 27 2022
Comment from Michael Somos, Aug 28 2022: (Start)
The previous comment expresses a(n) as the sum of all of the n X n multiplication table array entries.
For example, for n = 4:
1 2 3 4
2 4 6 8
3 6 9 12
4 8 12 16
This array sum can be split up as follows:
+---+---------------+
| 0 | 1 2 3 4 | (0+1)*(1+2+3+4)
| +---+-----------+
| 0 | 2 | 4 6 8 | (1+2)*(2+3+4)
| | +---+-------+
| 0 | 3 | 6 | 9 12 | (2+3)*(3+4)
| | | +---+---+
| 0 | 4 | 8 |12 |16 | (3+4)*(4)
+---+---+---+---+---+
This kind of row+column sums was used by Ramanujan and others for summing Lambert series. (End)
a(n) = 6*A000332(n+4) - 12*A000292(n+1) + 7*A000217(n+1) - n - 1. - Adam Mohamed, Sep 05 2024

Extensions

Edited by M. F. Hasler, May 02 2015

A014820 a(n) = (1/3)*(n^2 + 2*n + 3)*(n+1)^2.

Original entry on oeis.org

1, 8, 33, 96, 225, 456, 833, 1408, 2241, 3400, 4961, 7008, 9633, 12936, 17025, 22016, 28033, 35208, 43681, 53600, 65121, 78408, 93633, 110976, 130625, 152776, 177633, 205408, 236321, 270600, 308481
Offset: 0

Views

Author

Keywords

Comments

a(n) is the number of 4 X 4 pandiagonal magic squares with sum 2n. - Sharon Sela (sharonsela(AT)hotmail.com), May 10 2002
Figurate numbers based on the 4-dimensional regular convex polytope called the 16-cell, hexadecachoron, 4-cross polytope or 4-hyperoctahedron with Schlaefli symbol {3,3,4}. a(n)=(n^2*(n^2+2))/3 if the offset were 1. - Michael J. Welch (mjw1(AT)ntlworld.com), Apr 01 2004, R. J. Mathar, Jul 18 2009
If X is an n-set and Y_i (i=1,2,3) mutually disjoint 2-subsets of X then a(n-6) is equal to the number of 7-subsets of X intersecting each Y_i (i=1,2,3). - Milan Janjic, Aug 26 2007
Equals binomial transform of [1, 7, 18, 20, 8, 0, 0, 0, ...], where (1, 7, 18, 20, 8) = row 4 of the Chebyshev triangle A081277. Also = row 4 of the array in A142978. - Gary W. Adamson, Jul 19 2008

References

  • T. A. Gulliver, Sequences from Arrays of Integers, Int. Math. Journal, Vol. 1, No. 4, pp. 323-332, 2002.

Crossrefs

Programs

  • GAP
    List([0..40], n -> (n+1)^2*((n+1)^2 +2)/3); # G. C. Greubel, Feb 10 2019
  • Magma
    [(1/3)*(n^2+2*n+3)*(n+1)^2: n in [0..40]]; // Vincenzo Librandi, May 22 2011
    
  • Maple
    al:=proc(s,n) binomial(n+s-1,s); end; be:=proc(d,n) local r; add( (-1)^r*binomial(d-1,r)*2^(d-1-r)*al(d-r,n),r=0..d-1); end; [seq(be(4,n),n=0..100)];
  • Mathematica
    LinearRecurrence[{5, -10, 10, -5, 1}, {1, 8, 33, 96, 225}, 31] (* Jean-François Alcover, Jan 17 2018 *)
  • PARI
    a(n)=(n+1)^2*(n^2+2*n+3)/3 \\ Charles R Greathouse IV, Apr 17 2012
    
  • R
    a <- c(1, 8, 33, 96,225)
    for(n in (length(a)+1):30) a[n] <- 5*a[n-1]-10*a[n-2]+10*a[n-3]-5*a[n-4]+a[n-5]
    a # Yosu Yurramendi, Sep 03 2013
    
  • Sage
    [((n+1)^2+2)*(n+1)^2/3 for n in range(40)] # G. C. Greubel, Feb 10 2019
    

Formula

Or, a(n-1) = n^2*(n^2+2)/3. - Corrected by R. J. Mathar, Jul 18 2009
From Vladeta Jovovic, Apr 03 2002: (Start)
G.f.: (1+x)^3/(1-x)^5.
Recurrence: a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5). (End)
a(n-1) = C(n+3,4) + 3 C(n+2,4) + 3 C(n+1,4) + C(n,4).
Sum_{n>=0} 1/((1/3*(n^2 + 2*n + 3))*(n+1)^2) = (1/4)*Pi^2 - 3*sqrt(2)*Pi*coth(Pi*sqrt(2))*(1/8) + 3/8 = 1.1758589... - Stephen Crowley, Jul 14 2009
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5), with n > 4, a(0)=1, a(1)=8, a(2)=33, a(3)=96, a(4)=225. - Yosu Yurramendi, Sep 03 2013
From Bruce J. Nicholson, Jan 23 2019: (Start)
Sum_{i=0..n} a(i) = A061927(n+1).
a(n) = 4*A002415(n+1) + A000290(n+1) = A039623(n+1) + A002415(n+1). (End)
E.g.f.: (3 + 21*x + 27*x^2 + 10*x^3 + x^4)*exp(x)/3. - G. C. Greubel, Feb 10 2019
Sum_{n >= 0} (-1)^n/(a(n)*a(n+1)) = 17/3 - 8*log(2) = 1/(8 + 2/(8 + 6/(8 + ... + n*(n-1)/(8 + ...)))). See A142983. - Peter Bala, Mar 06 2024

Extensions

Formula index corrected by R. J. Mathar, Jul 18 2009

A246106 Number A(n,k) of inequivalent n X n matrices with entries from [k], where equivalence means permutations of rows or columns; square array A(n,k), n>=0, k>=0, read by antidiagonals.

Original entry on oeis.org

1, 1, 0, 1, 1, 0, 1, 2, 1, 0, 1, 3, 7, 1, 0, 1, 4, 27, 36, 1, 0, 1, 5, 76, 738, 317, 1, 0, 1, 6, 175, 8240, 90492, 5624, 1, 0, 1, 7, 351, 57675, 7880456, 64796982, 251610, 1, 0, 1, 8, 637, 289716, 270656150, 79846389608, 302752867740, 33642660, 1, 0
Offset: 0

Views

Author

Alois P. Heinz, Aug 13 2014

Keywords

Examples

			Square array A(n,k) begins:
  1, 1,    1,        1,           1,              1, ...
  0, 1,    2,        3,           4,              5, ...
  0, 1,    7,       27,          76,            175, ...
  0, 1,   36,      738,        8240,          57675, ...
  0, 1,  317,    90492,     7880456,      270656150, ...
  0, 1, 5624, 64796982, 79846389608, 20834113243925, ...
		

Crossrefs

Main diagonal gives A246107.
A028657, A242106, A353585 are related tables.

Programs

  • Maple
    b:= proc(n, i) option remember; `if`(n=0, [[]],
          `if`(i<1, [], [b(n, i-1)[], seq(map(p->[p[], [i, j]],
           b(n-i*j, i-1))[], j=1..n/i)]))
        end:
    A:= proc(n, k) option remember; add(add(k^add(add(i[2]*j[2]*
          igcd(i[1], j[1]), j=t), i=s) /mul(i[1]^i[2]*i[2]!, i=s)
          /mul(i[1]^i[2]*i[2]!, i=t), t=b(n$2)), s=b(n$2))
        end:
    seq(seq(A(n, d-n), n=0..d), d=0..10);
  • PARI
    A246106(n,k)=A353585(k,n,n) \\ M. F. Hasler, May 01 2022

Formula

A(n,k) = Sum_{i=0..k} C(k,i) * A256069(n,i).
A(n,k) = Sum_{p,q in P(n)} k^Sum_{i in p, j in q} gcd(i, j) / (N(p)*N(q)) where N(p) = Product_{distinct parts x in p} x^m(x)*m(x)!, m(x) = multiplicity of x in p. - M. F. Hasler, Apr 30 2022 [corrected by Anders Kaseorg, Oct 04 2024]

A282614 Number of inequivalent 3 X 3 matrices with entries in {1,2,3,..,n} up to vertical and horizontal reflections.

Original entry on oeis.org

0, 1, 168, 5346, 67840, 496875, 2544696, 10151428, 33693696, 97135605, 250525000, 590412966, 1291500288, 2653631071, 5169160920, 9616725000, 17188519936, 29659392873, 49607301096, 80696066410, 128032800000, 198613915731, 301875282808, 450363792396
Offset: 0

Views

Author

David Nacin, Feb 19 2017

Keywords

Comments

Cycle index of symmetry group is (2*s(2)^3*s(1)^3 + s(2)^4*s(1) + s(1)^9)/4.

Examples

			The number of 3 X 3 binary matrices up to vertical and horizontal reflections is 168.
		

Crossrefs

Cf. A282613, A282614, A217331, A168555. (For 2x2 version see A039623.)

Programs

  • Mathematica
    Table[(2n+1+n^4)n^5/4, {n, 0, 24}]
    LinearRecurrence[{10,-45,120,-210,252,-210,120,-45,10,-1},{0,1,168,5346,67840,496875,2544696,10151428,33693696,97135605},30] (* Harvey P. Dale, Oct 01 2024 *)
  • PARI
    concat(0, Vec(x*(1 + 158*x + 3711*x^2 + 21820*x^3 + 39095*x^4 + 22254*x^5 + 3577*x^6 + 104*x^7) / (1 - x)^10 + O(x^30))) \\ Colin Barker, Feb 23 2017

Formula

a(n) = n^5*(n+1)*(n^3-n^2+n+1)/4.
G.f.: x*(1 + 158*x + 3711*x^2 + 21820*x^3 + 39095*x^4 + 22254*x^5 + 3577*x^6 + 104*x^7) / (1 - x)^10. - Colin Barker, Feb 23 2017

A283028 Number of inequivalent 4 X 4 matrices with entries in {1,2,3,...,n} up to vertical and horizontal reflections.

Original entry on oeis.org

0, 1, 16576, 10766601, 1073790976, 38147265625, 705278736576, 8308236966001, 70368756760576, 463255079498001, 2500000075000000, 11487432626662201, 46221065046245376, 166354152907593001, 544488335559184576, 1642102090850390625, 4611686021648613376
Offset: 0

Views

Author

David Nacin, Feb 27 2017

Keywords

Comments

Cycle index of dihedral group D2 acting on the 16 entries is (3s(2)^8 + s(1)^16)/4.

Examples

			For n=2 we get a(2)=16576 inequivalent 4 X 4 binary matrices up to vertical and horizontal reflections.
		

Crossrefs

Cf. A283032 (5 X 5 version), A282614 (3 X 3 version), A039623 (2 X 2 version).

Programs

  • GAP
    List([0..20], n -> n^8*(n^8+3)/4); # G. C. Greubel, Dec 07 2018
  • Magma
    [n^8*(n^8+3)/4: n in [0..20]]; // G. C. Greubel, Dec 07 2018
    
  • Maple
    [n^8*(n^8+3)/4$n=0..18]; # Muniru A Asiru, Dec 07 2018
  • Mathematica
    Table[n^8(n^8 + 3)/4,{n,0,30}]
  • PARI
    a(n) = n^8 * (n^8 + 3)/4; \\ Altug Alkan, Feb 27 2017
    
  • Python
    def A283028(n): return n**8*(n**8 + 3)/4 # Indranil Ghosh, Feb 27 2017
    
  • Sage
    [n^8*(n^8+3)/4 for n in range(20)] # G. C. Greubel, Dec 07 2018
    

Formula

a(n) = n^8 * (n^8 + 3)/4.
From Chai Wah Wu, Dec 07 2018: (Start)
a(n) = 17*a(n-1) - 136*a(n-2) + 680*a(n-3) - 2380*a(n-4) + 6188*a(n-5) - 12376*a(n-6) + 19448*a(n-7) - 24310*a(n-8) + 24310*a(n-9) - 19448*a(n-10) + 12376*a(n-11) - 6188*a(n-12) + 2380*a(n-13) - 680*a(n-14) + 136*a(n-15) - 17*a(n-16) + a(n-17) for n > 16.
G.f.: -x*(x + 1)*(x^14 + 16558*x^13 + 10468387*x^12 + 882544028*x^11 + 20463263441*x^10 + 175065686258*x^9 + 626804969739*x^8 + 968894839176*x^7 + 626804969739*x^6 + 175065686258*x^5 + 20463263441*x^4 + 882544028*x^3 + 10468387*x^2 + 16558*x + 1)/(x - 1)^17. (End)
E.g.f.: (1/4)*x*exp(x)*(x^15 + 120*x^14 + 6020*x^13 + 165620*x^12 + 2757118*x^11 + 28936908*x^10 + 193754990*x^9 + 820784250*x^8 + 2141764056*x^7 + 3281882688*x^6 + 2734927356*x^5 + 1096193700*x^4 + 171804004*x^3 + 7144584*x^2 + 33148*x + 4). - Stefano Spezia, Dec 07 2018

A283032 Number of inequivalent 5 X 5 matrices with entries in {1,2,3,...,n} up to vertical and horizontal reflections.

Original entry on oeis.org

0, 1, 8407040, 211829725395, 281475530358784, 74505821533203125, 7107572245840091136, 335267157313994232775, 9444732983468915425280, 179474497026544179696969, 2500000000502500000000000, 27086764860568185273201371, 238490541617902791488962560
Offset: 0

Views

Author

David Nacin, Feb 27 2017

Keywords

Comments

Cycle index of dihedral group D2 acting on the 25 entries is (2*s(2)^10*s(1)^5 + s(2)^12*s(1) + s(1)^25)/4.

Examples

			For n=2 we get a(2)=8407040 inequivalent 5 X 5 binary matrices up to vertical and horizontal reflections.
		

Crossrefs

Cf. A283028 (4 X 4 version), A282614 (3 X 3 version), A039623 (2 X 2 version).

Programs

  • GAP
    List([0..30], n -> n^13*(n^2+1)*(n^10-n^8+n^6-n^4+n^2+1)/4); # G. C. Greubel, Dec 07 2018
  • Magma
    [n^13*(n^2+1)*(n^10-n^8+n^6-n^4+n^2+1)/4: n in [0..20]]; // G. C. Greubel, Dec 07 2018
    
  • Maple
    [n^13*(n^2+1)*(n^10-n^8+n^6-n^4+n^2+1)/4$n=0..16]; # Muniru A Asiru, Dec 07 2018
  • Mathematica
    Table[n^13*(n^2 + 1)*(n^10- n^8 + n^6 - n^4 + n^2 + 1)/4, {n, 0, 16}]
  • PARI
    a(n) = n^13*(n^2 + 1)*(n^10 - n^8 + n^6 - n^4 + n^2 + 1)/4; \\ Indranil Ghosh, Feb 27 2017
    
  • Python
    def A283032(n): return n**13*(n**2 + 1)*(n**10 - n**8 + n**6 - n**4 + n**2 + 1)/4 # Indranil Ghosh, Feb 27 2017
    
  • Sage
    [n^13*(n^2+1)*(n^10-n^8+n^6-n^4+n^2+1)/4 for n in range(20)] # G. C. Greubel, Dec 07 2018
    

Formula

a(n) = n^13*(n^2 + 1)*(n^10 - n^8 + n^6 - n^4 + n^2 + 1)/4.
From Chai Wah Wu, Dec 07 2018: (Start)
a(n) = 26*a(n-1) - 325*a(n-2) + 2600*a(n-3) - 14950*a(n-4) + 65780*a(n-5) - 230230*a(n-6) + 657800*a(n-7) - 1562275*a(n-8) + 3124550*a(n-9) - 5311735*a(n-10) + 7726160*a(n-11) - 9657700*a(n-12) + 10400600*a(n-13) - 9657700*a(n-14) + 7726160*a(n-15) - 5311735*a(n-16) + 3124550*a(n-17) - 1562275*a(n-18) + 657800*a(n-19) - 230230*a(n-20) + 65780*a(n-21) - 14950*a(n-22) + 2600*a(n-23) - 325*a(n-24) + 26*a(n-25) - a(n-26) for n > 25.
G.f.: x*(x^24 + 8407014*x^23 + 211611142680*x^22 + 275970689783914*x^21 + 67256280546339066*x^20 + 5261349801742569906*x^19 + 173956000842889834744*x^18 + 2848226864171846366430*x^17 + 25488973079778181586319*x^16 + 132928565341114340101276*x^15 + 421347175221451531355376*x^14 + 833653141284854063434884*x^13 + 1044911777483791594156780*x^12 + 833653141284854063434884*x^11 + 421347175221451531355376*x^10 + 132928565341114340101276*x^9 + 25488973079778181586319*x^8 + 2848226864171846366430*x^7 + 173956000842889834744*x^6 + 5261349801742569906*x^5 + 67256280546339066*x^4 + 275970689783914*x^3 + 211611142680*x^2 + 8407014*x + 1)/(x - 1)^26. (End)

A058004 Number of 6 X 6 matrices with entries mod n, up to row and column permutation.

Original entry on oeis.org

1, 251610, 302752867740, 9178323524804624, 28125393244553141210, 19909522361922032493690, 5116530046996205504668323, 626072069382507442113224128, 43460016875695276108491159279
Offset: 1

Views

Author

Vladeta Jovovic, Nov 04 2000

Keywords

Comments

Number of k X l matrices with entries mod n, up to row and column permutation is Z(S_k X S_l; n,n,...) where Z(S_k X S_l; x_1,x_2,...) is cycle index of Cartesian product of symmetric groups S_k and S_l of degree k and l, respectively.

Crossrefs

Formula

a(n)=(1/6!^2)*(n^36 + 30*n^30 + 225*n^26 + 170*n^24 + 1350*n^22 + 3225*n^20 + 4075*n^18 + 9900*n^16 + 28500*n^14 + 56048*n^12 + 61020*n^10 + 77616*n^8 + 153840*n^6 + 87840*n^4 + 34560*n^2).

A058003 Number of 5 X 5 matrices with entries mod n, up to row and column permutation.

Original entry on oeis.org

1, 5624, 64796982, 79846389608, 20834113243925, 1979525296377132, 93242242505023122, 2625154125717590496, 49871029909245781491, 694584034909225304800, 7525039263469551291908, 66252712846754819753160
Offset: 1

Views

Author

Vladeta Jovovic, Nov 04 2000

Keywords

Comments

Number of k X l matrices with entries mod n, up to row and column permutation is Z(S_k X S_l; n,n,...) where Z(S_k X S_l; x_1,x_2,...) is cycle index of Cartesian product of symmetric groups S_k and S_l of degree k and l, respectively.

Crossrefs

Formula

a(n)=(1/5!^2)*(n^25 + 20*n^20 + 100*n^17 + 70*n^15 + 300*n^14 + 225*n^13 + 400*n^12 + 400*n^11 + 100*n^10 + 1600*n^9 + 2300*n^8 + 1300*n^7 + 1200*n^6 + 1824*n^5 + 480*n^4 + 1680*n^3 + 2400*n^2).

Extensions

More terms from James Sellers, Nov 08 2000

A269064 At stage 1, start with a unit equilateral triangle. At each successive stage add 3*(n-1) new triangles around outside with vertex-to-vertex contacts. Sequence gives number of triangles at n-th stage.

Original entry on oeis.org

0, 1, 4, 10, 26, 48, 87, 135, 208, 293, 410, 542, 714, 904, 1141, 1399, 1712, 2049, 2448, 2874, 3370, 3896, 4499, 5135, 5856, 6613, 7462, 8350, 9338, 10368, 11505, 12687, 13984, 15329, 16796, 18314, 19962, 21664, 23503, 25399, 27440, 29541, 31794, 34110, 36586, 39128, 41837, 44615, 47568
Offset: 0

Views

Author

Luce ETIENNE, Feb 18 2016

Keywords

Comments

At stage n, we count (6*n^2-6*n+5-3*(2*n-1)*(-1)^n)/8 unit up-pointing triangles and 3*(2*n^2-2*n+1+(2*n-1)*(-1)^n)/8 unit down-pointing triangles.
At stage n, the total number of unit triangles is (3*n^2-3*n+2)/2 = A005448(n). It is the same total as for A064412. Note also that A064412 gives number of triangles in a geometrical structure according to expansion side-side (mode S-S).
The edges of several unit triangles can form larger size triangles, and these are also up- or down-pointing. The number of all such larger is given by :(14*n^3-9*n^2+11*n+18-(9*n^2+3*n+14)*(-1)^n-4*((-1)^((2*n+1-(-1)^n)/4)))/64 up-pointing triangles and (14*n^3-15*n^2+35*n-6+(9*n^2+21*n+2)*(-1)^n+4*((-1)^((2*n-1+(-1)^n)/4)))/64 down-pointing triangles.
As for A265282 we observe that starting with n = 4 we can see and count hexagonal and dodecagonal forms for example in a reticular system (incomplete with hexagonal holes) by opposition to a compact shape A064412.

Examples

			a(0)= 0, a(1) = 1, a(2) = 4, a(3) = 7+3 = 10, a(4) = 19 + 6 + 1 = 26, a(5) = 31 + 12 + 4 + 1 = 48.
		

Crossrefs

Programs

  • Magma
    [(14*n^3-12*n^2+23*n+6+3*(3*n-2)*(-1)^n+2*((-1)^((2*n-1+(-1)^n) div 4)-(-1)^((6*n-1+(-1)^n) div 4)))/32: n in [0..50]]; // Vincenzo Librandi, Feb 19 2016
    
  • Mathematica
    Table[(14 n^3 - 12 n^2 + 23 n + 6 + 3 (3 n - 2) (-1)^n + 2 ((-1)^((2*n - 1 + (-1)^n) / 4) - (-1)^((6 n - 1 + (-1)^n) / 4))) / 32, {n, 0, 45}] (* Vincenzo Librandi, Feb 19 2016 *)
  • PARI
    concat(0, Vec(x*(1+2*x+2*x^2+8*x^3+2*x^4+5*x^5+x^6)/((1-x)^4*(1+x)^2*(1+x^2)) + O(x^50))) \\ Colin Barker, Feb 24 2016

Formula

a(n) = (7*n^3-3*n^2+4*n)/2 for n even.
a(n) = (28*n^3+30*n^2+16*n+7+(-1)^n)/8 for n odd.
a(n) = (14*n^3-12*n^2+23*n+6+3*(3*n-2)*(-1)^n+2*((-1)^((2*n-1+(-1)^n)/4)-(-1)^((6*n-1+(-1)^n)/4)))/32.
G.f.: x*(1+2*x+2*x^2+8*x^3+2*x^4+5*x^5+x^6) / ((1-x)^4*(1+x)^2*(1+x^2)). - Colin Barker, Feb 24 2016
Showing 1-10 of 13 results. Next