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 A212133 #46 Feb 07 2025 09:44:43 %S A212133 0,1,8,33,88,185,336,553,848,1233,1720,2321,3048,3913,4928,6105,7456, %T A212133 8993,10728,12673,14840,17241,19888,22793,25968,29425,33176,37233, %U A212133 41608,46313,51360,56761,62528,68673,75208,82145,89496,97273,105488,114153,123280 %N A212133 Number of (w,x,y,z) with all terms in {1,...,n} and median=mean. %C A212133 For a guide to related sequences, see A211795. %C A212133 For n>=1, a(n) is the number of cells in the n-th rhombic-dodecahedral polycube. - _George Sicherman_, Jan 22 2024 %H A212133 Reinhard Zumkeller, <a href="/A212133/b212133.txt">Table of n, a(n) for n = 0..10000</a> %H A212133 Z. Janelidze, F. van Niekerk, and J. Viljoen, <a href="https://arxiv.org/abs/2502.00704">What is the maximal connected partial symmetry index of a connected graph of a given size?</a>, arXiv:2502.00704 [math.CO], 2025. See p. 4. %H A212133 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (4,-6,4,-1). %F A212133 a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). %F A212133 a(n) = n * (2*n^2 - 3*n + 2). - _J. M. Bergot_, Jun 22 2012 %F A212133 a(n) = A000384(n) + n*A000384(n-1). - _Bruno Berselli_, Jun 07 2013 %F A212133 a(n) = (A005917(n) + 1) / 2 for n > 0. - _Reinhard Zumkeller_, Nov 13 2014 %F A212133 G.f.: x*(1 + 4*x + 7*x^2) / (1 - x)^4. - _Colin Barker_, Dec 02 2017 %e A212133 a(2) counts these 4-tuples: (1,1,1,1), (1,1,2,2), (1,2,1,2), (2,1,1,2), (1,2,2,1), (2,1,2,1), (2,2,1,1), (2,2,2,2). %t A212133 t = Compile[{{n, _Integer}}, %t A212133 Module[{s = 0}, (Do[If[Apply[Plus, Rest[Most[Sort[{w, x, y, z}]]]]/2 == (w + x + y + z)/4, s = s + 1], {w, 1, #}, {x, 1, #}, {y, 1, #}, {z, 1, #}] &[n]; s)]]; %t A212133 Flatten[Map[{t[#]} &, Range[0, 50]]] (* A212133 *) %t A212133 (* _Peter J. C. Moses_, May 01 2012 *) %o A212133 (PARI) a(n)=2*n^3-3*n^2+2*n; \\ _Joerg Arndt_, Jun 22 2012 %o A212133 (PARI) concat(0, Vec(x*(1 + 4*x + 7*x^2) / (1 - x)^4 + O(x^40))) \\ _Colin Barker_, Dec 02 2017 %o A212133 (Haskell) %o A212133 a212133 n = if n == 0 then 0 else (a005917 n + 1) `div` 2 %o A212133 -- _Reinhard Zumkeller_, Nov 13 2014 %Y A212133 Cf. A211795. %Y A212133 Cf. A226449. - _Bruno Berselli_, Jun 09 2013 %Y A212133 Cf. A005917. %K A212133 nonn,easy %O A212133 0,3 %A A212133 _Clark Kimberling_, May 04 2012 %E A212133 Closed form adapted to the offset by _Bruno Berselli_, Jun 07 2013