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.

A262070 a(n) = ceiling( log_3( binomial(n,2) ) ).

Original entry on oeis.org

0, 1, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9
Offset: 2

Views

Author

R. J. Mathar, Sep 10 2015

Keywords

Comments

A lower bound on the number of weighings which suffice to determine the counterfeit (heavier) coins in a set of n coins given a balance scale and the information that there are exactly two heavier coins present.
Records occur at n=2, 3, 4, 5, 8, 14, 23, 39, 67, 116, 199, 345, 596,...

Crossrefs

Cf. A080342 (single counterfeit coin).

Programs

  • Magma
    [Ceiling(Log(3,Binomial(n,2))): n in [2..120]]; // Bruno Berselli, Sep 10 2015
  • Maple
    seq(ceil(log[3](binomial(n,2))),n=2..120) ;
  • Mathematica
    Ceiling[Log[3,Binomial[Range[2,120],2]]] (* Harvey P. Dale, Dec 13 2016 *)
  • PARI
    first(m)=vector(m,i,i++;ceil(log(binomial(i,2))/log(3))) \\ Anders Hellström, Sep 10 2015