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-2 of 2 results.

A093659 First column of lower triangular matrix A093658; factorial of the number of 1's in binary expansion of n.

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 2, 6, 1, 2, 2, 6, 2, 6, 6, 24, 1, 2, 2, 6, 2, 6, 6, 24, 2, 6, 6, 24, 6, 24, 24, 120, 1, 2, 2, 6, 2, 6, 6, 24, 2, 6, 6, 24, 6, 24, 24, 120, 2, 6, 6, 24, 6, 24, 24, 120, 6, 24, 24, 120, 24, 120, 120, 720, 1, 2, 2, 6, 2, 6, 6, 24, 2, 6, 6, 24, 6
Offset: 0

Views

Author

Paul D. Hanna, Apr 08 2004

Keywords

Comments

a(n) is the number of compositions of n into distinct powers of 2. - Vladimir Shevelev, Jan 15 2014

Crossrefs

Programs

  • Maple
    a:= n-> add(i,i=Bits[Split](n))!:
    seq(a(n), n=0..80);  # Alois P. Heinz, Nov 02 2024
  • Mathematica
    Table[DigitCount[n,2,1]!,{n,0,70}] (* Harvey P. Dale, Jul 09 2019 *)
  • Python
    from math import factorial
    def a(n): return factorial(n.bit_count()) # Michael S. Branicky, Nov 02 2024

Formula

a(2^n) = n! for n>=0. a(2^n+2^m) = a(2^(m+1)) for n>m>=0.
a(n) = A000120(n)! = A000142(A000120(n)).

A136494 Number of permutation symmetries in the binary expansion of n.

Original entry on oeis.org

1, 1, 1, 2, 2, 2, 2, 6, 6, 4, 4, 6, 4, 6, 6, 24, 24, 12, 12, 12, 12, 12, 12, 24, 12, 12, 12, 24, 12, 24, 24, 120, 120, 48, 48, 36, 48, 36, 36, 48, 48, 36, 36, 48, 36, 48, 48, 120, 48, 36, 36, 48, 36, 48, 48, 120, 36, 48, 48, 120, 48, 120, 120, 720, 720
Offset: 0

Views

Author

Max Sills, Apr 13 2008

Keywords

Examples

			a(14) = 6 because there are 3! permutation symmetries of 1's * the 0! permutation symmetries of 0's.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := Times @@ (DigitCount[n, 2]!); Array[a, 65, 0] (* Amiram Eldar, Jul 29 2023 *)
  • PARI
    a(n) = {if(n==0, 1, my(w=hammingweight(n)); w!*(1+logint(n,2)-w)!)} \\ Andrew Howroyd, Jan 12 2020

Formula

a(n) = A093659(n) * A139329(n).
a(n) = A000120(n)! * A080791(n)!.

Extensions

Terms a(32) and beyond from Andrew Howroyd, Jan 12 2020
Showing 1-2 of 2 results.