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.

A075104 Greatest common divisor of n and integer part of log_2(n).

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 1, 1, 3, 1, 1, 3, 1, 1, 3, 4, 1, 2, 1, 4, 1, 2, 1, 4, 1, 2, 1, 4, 1, 2, 1, 1, 1, 1, 5, 1, 1, 1, 1, 5, 1, 1, 1, 1, 5, 1, 1, 1, 1, 5, 1, 1, 1, 1, 5, 1, 1, 1, 1, 5, 1, 1, 1, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2
Offset: 1

Views

Author

Reinhard Zumkeller, Sep 02 2002

Keywords

Crossrefs

Programs

  • Haskell
    a075104 n = gcd n $ a000523 n  -- Reinhard Zumkeller, Jul 08 2014
  • Mathematica
    Table[GCD[n,IntegerPart[Log[2,n]]],{n,110}] (* Harvey P. Dale, Apr 21 2016 *)

Formula

a(n) = gcd(n, A000523(n)).