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.

A007150 2-part of number of tournaments on n nodes.

Original entry on oeis.org

0, 0, 1, 2, 2, 3, 3, 5, 4, 6, 5, 7, 6, 7, 7, 10, 8, 9, 9, 12, 10, 11, 11, 14, 12, 14, 13, 15, 14, 17, 15, 19, 16, 20, 17, 19, 18, 19, 19, 26, 20, 22, 21, 23, 22, 23, 23, 30, 24, 26, 25, 28, 26, 27, 27, 30, 28, 30, 29, 33, 30, 31, 31, 35, 32, 34, 33, 38, 34, 37, 35, 38, 36, 38, 37, 39
Offset: 1

Views

Author

Keywords

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Power of 2 dividing A000568(n). Cf. A007814.

Programs

  • Mathematica
    A000568 = Cases[Import["https://oeis.org/A000568/b000568.txt", "Table"], {, }][[All, 2]];
    IntegerExponent[#, 2]& /@ A000568 // Rest (* Jean-François Alcover, Jan 06 2020 *)
  • Python
    from itertools import product
    from math import prod, factorial, gcd
    from fractions import Fraction
    from sympy.utilities.iterables import partitions
    def A007150(n): return (~(m:=int(sum(Fraction(1<<(sum(p[r]*p[s]*gcd(r,s) for r,s in product(p.keys(),repeat=2))-sum(p.values())>>1),prod(q**p[q]*factorial(p[q]) for q in p)) for p in partitions(n) if all(q&1 for q in p)))) & m-1).bit_length() # Chai Wah Wu, Jul 01 2024

Formula

a(n) = A007814(A000568(n)). - Michel Marcus, Jan 06 2020

Extensions

More terms from A000568 by Jean-François Alcover, Jan 06 2020