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 A060818 #102 Feb 16 2025 08:32:44 %S A060818 1,1,2,2,8,8,16,16,128,128,256,256,1024,1024,2048,2048,32768,32768, %T A060818 65536,65536,262144,262144,524288,524288,4194304,4194304,8388608, %U A060818 8388608,33554432,33554432,67108864,67108864,2147483648,2147483648,4294967296 %N A060818 a(n) = 2^(n - HammingWeight(n)) = 2^(n - BitCount(n)) = 2^(n - A000120(n)). %C A060818 a(n) is the size of the Sylow 2-subgroup of the symmetric group S_n. %C A060818 Also largest power of 2 which is a factor of n! and (apart from a(3)) the largest perfect power which is a factor of n!. %C A060818 Denominator of e(n,n) (see Maple line). %C A060818 Denominator of the coefficient of x^n in n-th Legendre polynomial; numerators are in A001790. - _Benoit Cloitre_, Nov 29 2002 %H A060818 Harry J. Smith, <a href="/A060818/b060818.txt">Table of n, a(n) for n = 0..200</a> %H A060818 Tyler Ball, Tom Edgar, and Daniel Juda, <a href="http://dx.doi.org/10.4169/math.mag.87.2.135">Dominance Orders, Generalized Binomial Coefficients, and Kummer's Theorem</a>, Mathematics Magazine, 87(2) (2014), 135-143. %H A060818 V. H. Moll, <a href="http://www.ams.org/notices/200203/fea-moll.pdf">The evaluation of integrals: a personal story</a>, Notices Amer. Math. Soc., 49(3) (2002), 311-317. %H A060818 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/RandomWalk1-Dimensional.html">Random Walk 1-Dimensional</a>. %H A060818 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/LegendrePolynomial.html">Legendre Polynomial</a>. %H A060818 <a href="/index/Di#divseq">Index to divisibility sequences</a> %F A060818 a(n) = 2^(floor(n/2) + floor(n/4) + floor(n/8) + floor(n/16) + ...). %F A060818 a(n) = 2^(A011371(n)). %F A060818 a(n) = gcd(n!, 2^n). - _Labos Elemer_, Apr 22 2003 %F A060818 a(n) = denominator(L(n)) with rational L(n):=binomial(2*n,n)/2^n. L(n) is the leading coefficient of the Legendre polynomial P_n(x). %F A060818 L(n) = (2*n-1)!!/n!, with the double factorial (2*n-1)!! = A001147(n), n>=0. %F A060818 a(n) = Product_{i=1..n} A006519(i). - _Tom Edgar_, Apr 30 2014 %F A060818 a(n) = (n! XOR floor(n!/2)) XOR (n!-1 XOR floor((n!-1)/2)). - _Gary Detlefs_, Jun 13 2014 %F A060818 a(n) = denominator(Catalan(n-1)/2^(n-1)) for n>0. - _Vincenzo Librandi_, Sep 01 2014 %F A060818 a(2*n) = a(2*n+1) = 2^n*a(n). - _Robert Israel_, Sep 01 2014 %F A060818 a(n) = n!*A063079(n+1)/A334907(n). - _Petros Hadjicostas_, May 16 2020 %e A060818 G.f. = 1 + x + 2*x^2 + 2*x^3 + 8*x^4 + 8*x^5 + 16*x^6 + 16*x^7 + 128*x^8 + ... %e A060818 e(n,n) sequence begins 1, 1, 3/2, 5/2, 35/8, 63/8, 231/16, 429/16, 6435/128, 12155/128, 46189/256, ... . %p A060818 e := proc(l,m) local k; add(2^(k-2*m) * binomial(2*m-2*k,m-k) * binomial(m+k,m) * binomial(k,l), k=l..m); end; %p A060818 A060818 := proc(n) option remember; `if`(n=0,1,2^(padic[ordp](n,2))*A060818(n-1)) end: seq(A060818(i), i=0..34); # _Peter Luschny_, Nov 16 2012 %p A060818 HammingWeight := n -> add(convert(n, base, 2)): %p A060818 seq(2^(n - HammingWeight(n)), n = 0..34); # _Peter Luschny_, Mar 23 2024 %t A060818 Table[GCD[w!, 2^w], {w, 100}] %t A060818 (* Second program, more efficient *) %t A060818 Array[2^(# - DigitCount[#, 2, 1]) &, 35, 0] (* _Michael De Vlieger_, Mar 23 2024 *) %o A060818 (PARI) {a(n) = denominator( polcoeff( pollegendre(n), n))}; %o A060818 (PARI) {a(n) = if( n<0, 0, 2^sum(k=1, n, n\2^k))}; %o A060818 (PARI) { for (n=0, 200, s=0; d=2; while (n>=d, s+=n\d; d*=2); write("b060818.txt", n, " ", 2^s); ) } \\ _Harry J. Smith_, Jul 12 2009 %o A060818 (Sage) %o A060818 def A060818(n): %o A060818 A005187 = lambda n: A005187(n//2) + n if n > 0 else 0 %o A060818 return 2^A005187(n//2) %o A060818 [A060818(i) for i in (0..34)] # _Peter Luschny_, Nov 16 2012 %o A060818 (Magma) [1] cat [Denominator(Catalan(n)/2^n): n in [0..50]]; // _Vincenzo Librandi_, Sep 01 2014 %o A060818 (Python 3.10+) %o A060818 def A060818(n): return 1<<n-n.bit_count() # _Chai Wah Wu_, Jul 11 2022 %Y A060818 Cf. A000120, A005187, A001790, A011371, A334907. %Y A060818 a(n) = A046161([n/2]). %Y A060818 Row sums of triangle A100258. %K A060818 nonn,easy,frac %O A060818 0,3 %A A060818 Ahmed Fares (ahmedfares(AT)my-deja.com), Apr 29 2001 %E A060818 Additional comments from _Henry Bottomley_, May 01 2001 %E A060818 New name from _Peter Luschny_, Mar 23 2024