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 A001523 M1102 N0420 #129 Mar 31 2025 04:50:08 %S A001523 1,1,2,4,8,15,27,47,79,130,209,330,512,784,1183,1765,2604,3804,5504, %T A001523 7898,11240,15880,22277,31048,43003,59220,81098,110484,149769,202070, %U A001523 271404,362974,483439,641368,847681,1116325,1464999,1916184,2498258,3247088,4207764 %N A001523 Number of stacks, or planar partitions of n; also weakly unimodal compositions of n. %C A001523 a(n) counts stacks of integer-length boards of total length n where no board overhangs the board underneath. %C A001523 Number of graphical partitions on 2n nodes that contain a 1. E.g. a(3)=4 and so there are 4 graphical partitions of 6 that contain a 1, namely (111111), (21111), (2211) and (3111). Only (222) fails. - _Jon Perry_, Jul 25 2003 %C A001523 It would seem from Stanley that he regards a(0)=0 for this sequence and A001522. - _Michael Somos_, Feb 22 2015 %C A001523 In the article by Auluck is a typo in the formula (24), 2*Pi is missing in an exponent on the left side of the equation for Q(n). The correct term is exp(2*Pi*sqrt(n/3)), not just exp(sqrt(n/3)). - _Vaclav Kotesovec_, Jun 22 2015 %D A001523 N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence). %D A001523 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence). %D A001523 R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 1, 1999; see section 2.5 on page 76. %H A001523 Alois P. Heinz, <a href="/A001523/b001523.txt">Table of n, a(n) for n = 0..10000</a> (first 1001 terms from T. D. Noe) %H A001523 F. C. Auluck, <a href="http://dx.doi.org/10.1017/S0305004100027134">On some new types of partitions associated with generalized Ferrers graphs</a>, Proc. Cambridge Philos. Soc. 47, (1951), 679-686, g(x). %H A001523 F. C. Auluck, <a href="/A001524/a001524.pdf">On some new types of partitions associated with generalized Ferrers graphs</a> (annotated scanned copy) %H A001523 H. Bottomley, <a href="/A001523/a001523.gif">Illustration of initial terms</a> %H A001523 Shouvik Datta, Matthias R. Gaberdiel, Wei Li, and Cheng Peng, <a href="https://arxiv.org/abs/1606.07070">Twisted sectors from plane partitions</a>, arXiv preprint arXiv:1606.07070 [hep-th], 2016. See Sect. 2.1. %H A001523 Sergi Elizalde, <a href="https://arxiv.org/abs/2008.05669">Symmetric peaks and symmetric valleys in Dyck paths</a>, arXiv:2008.05669 [math.CO], 2020. %H A001523 Sergi Elizalde and Emeric Deutsch, <a href="https://doi.org/10.54550/ECA2022V2S1R7">The degree of asymmetry of a sequence</a>, Enum. Combinat. Applic. 2 (2022) no 1 #S2R7, U(1,z). %H A001523 Philippe Flajolet and Robert Sedgewick, <a href="http://algo.inria.fr/flajolet/Publications/books.html">Analytic Combinatorics</a>, 2009; see page 46. %H A001523 Rigoberto Flórez, José L. Ramírez, and Diego Villamizar, <a href="https://doi.org/10.1016/j.jcta.2024.105934">Restricted bargraphs and unimodal compositions</a>, J. Comb. Theory, Series A, (2024) Vol. 208, Art. No. 105934. %H A001523 R. C. Rhoades, <a href="http://math.stanford.edu/~rhoades/FILES/unimodal.pdf">Strongly Unimodal Sequences and Mixed Mock Modular Forms</a> %H A001523 Alan D. Sokal, <a href="http://arxiv.org/abs/1106.1003">The leading root of the partial theta function</a>, arXiv preprint arXiv:1106.1003 [math.CO], 2011. %H A001523 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/UnimodalSequence.html">Unimodal Sequence</a> %H A001523 E. M. Wright, <a href="https://doi.org/10.1093/qmath/23.2.153">Stacks, III</a>, Quart. J. Math. Oxford, 23 (1972), 153-158. %F A001523 a(n) = Sum_{k=1..n} f(k, n-k), where f(n, k) (= A054250) = 1 if k = 0; Sum_{j=1..min(n, k)} (n-j+1)*f(j, k-j) if k > 0. - _David W. Wilson_, May 05 2000 %F A001523 a(n) = Sum_{k} A059623(n, k) for n > 0. - _Henry Bottomley_, Feb 01 2001 %F A001523 A006330(n) + a(n) = A000712(n). - _Michael Somos_, Jul 22 2003 %F A001523 G.f.: 1 + (Sum_{k>0} -(-1)^k x^(k(k+1)/2))/(Product_{k>0} (1-x^k))^2. - _Michael Somos_, Jul 22 2003 %F A001523 G.f.: 1 + Sum_{n>=1} (x^n / ( ( Product_{k=1..n-1} (1 - x^k)^2 ) * (1-x^n) ) ). - _Joerg Arndt_, Oct 01 2012 %F A001523 a(n) ~ exp(2*Pi*sqrt(n/3)) / (8 * 3^(3/4) * n^(5/4)) [Auluck, 1951]. - _Vaclav Kotesovec_, Jun 22 2015 %F A001523 a(n) + A115981(n) = 2^(n - 1). - _Gus Wiseman_, Mar 04 2020 %e A001523 For a(4)=8 we have the following stacks: %e A001523 x %e A001523 x x. .x %e A001523 x x. .x x.. .x. ..x xx %e A001523 x xx xx xxx xxx xxx xx xxxx %e A001523 G.f. = 1 + x + 2*x^2 + 4*x^3 + 8*x^4 + 15*x^5 + 27*x^6 + 47*x^7 + 79*x^8 + ... %e A001523 From _Gus Wiseman_, Mar 04 2020: (Start) %e A001523 The a(1) = 1 through a(5) = 15 unimodal compositions: %e A001523 (1) (2) (3) (4) (5) %e A001523 (11) (12) (13) (14) %e A001523 (21) (22) (23) %e A001523 (111) (31) (32) %e A001523 (112) (41) %e A001523 (121) (113) %e A001523 (211) (122) %e A001523 (1111) (131) %e A001523 (221) %e A001523 (311) %e A001523 (1112) %e A001523 (1121) %e A001523 (1211) %e A001523 (2111) %e A001523 (11111) %e A001523 (End) %p A001523 b:= proc(n, i) option remember; %p A001523 `if`(i>n, 0, `if`(irem(n, i)=0, 1, 0)+ %p A001523 add(b(n-i*j, i+1)*(j+1), j=0..n/i)) %p A001523 end: %p A001523 a:= n-> `if`(n=0, 1, b(n, 1)): %p A001523 seq(a(n), n=0..60); # _Alois P. Heinz_, Mar 26 2014 %t A001523 max = 40; s = 1 + Sum[(-1)^(k + 1)*q^(k*(k + 1)/2), {k, 1, max}] / QPochhammer[q]^2 + O[q]^max; CoefficientList[s, q] (* _Jean-François Alcover_, Jan 25 2012, updated Nov 29 2015 *) %t A001523 b[n_, i_] := b[n, i] = If[i>n, 0, If[Mod[n, i]==0, 1, 0] + Sum[b[n-i*j, i+1]*(j+1), {j, 0, n/i}]]; a[n_] := If[n==0, 1, b[n, 1]]; Table[a[n], {n, 0, 60}] (* _Jean-François Alcover_, Nov 24 2015, after _Alois P. Heinz_ *) %t A001523 unimodQ[q_]:=Or[Length[q]<=1,If[q[[1]]<=q[[2]],unimodQ[Rest[q]],OrderedQ[Reverse[q]]]]; %t A001523 Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],unimodQ[#]&]],{n,0,10}] (* _Gus Wiseman_, Mar 04 2020 *) %o A001523 (PARI) {a(n) = if( n<1, n==0, polcoeff( sum(k=1, (sqrt(1 + 8*n) - 1)\2, -(-1)^k * x^((k + k^2)/2)) / eta(x + x * O(x^n))^2 ,n))}; /* _Michael Somos_, Jul 22 2003 */ %o A001523 (Python) %o A001523 def b(n, i): %o A001523 if i>n: return 0 %o A001523 if n%i==0: x=1 %o A001523 else: x=0 %o A001523 return x + sum([b(n - i*j, i + 1)*(j + 1) for j in range(n//i + 1)]) %o A001523 def a(n): return 1 if n==0 else b(n, 1) # _Indranil Ghosh_, Jun 09 2017, after Maple code by _Alois P. Heinz_ %o A001523 (Magma) %o A001523 m:=100; %o A001523 R<x>:=PowerSeriesRing(Integers(), m); %o A001523 Coefficients(R!( 1 + (&+[ x^n*(1-x^n)/(&*[(1-x^j)^2: j in [1..n]]): n in [1..m+2]]) )); // _G. C. Greubel_, Apr 03 2023 %Y A001523 Cf. A054250, A059618, A059623, A001522, A001524. %Y A001523 Cf. A000569. Bisections give A100505, A100506. %Y A001523 Row sums of A247255. %Y A001523 Row sums of A072704. %Y A001523 The strict case is A072706. %Y A001523 The complement is counted by A115981. %Y A001523 The case covering an initial interval is A227038. %Y A001523 The version whose negation is unimodal as well appears to be A329398. %Y A001523 Unimodal sequences covering an initial interval are A007052. %Y A001523 Non-unimodal permutations are A059204. %Y A001523 Non-unimodal sequences covering an initial interval are A328509. %Y A001523 Partitions with unimodal run-lengths are A332280. %Y A001523 Numbers whose prime signature is not unimodal are A332282. %Y A001523 Partitions whose 0-appended first differences are unimodal are A332283. %Y A001523 The number of unimodal permutations of the prime indices of n is A332288. %Y A001523 Compositions whose negation is unimodal are A332578. %Y A001523 Compositions whose run-lengths are unimodal are A332726. %Y A001523 Cf. A107429, A156253, A332285, A332294, A332577, A332642, A332669. %K A001523 nonn,nice,easy %O A001523 0,3 %A A001523 _N. J. A. Sloane_ %E A001523 More terms from _David W. Wilson_, May 05 2000 %E A001523 Definition corrected by _Wolfdieter Lang_, Dec 05 2018