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.

A124301 Smallest number m such that A124300(m) >= n.

Original entry on oeis.org

1, 2, 29, 242, 844, 22020, 217070, 1092747, 8870024, 221167422, 221167422
Offset: 0

Views

Author

Reinhard Zumkeller, Oct 25 2006

Keywords

Comments

A008683(a(n) + k) = A008683(a(n)) for 0<=k<=n.

Examples

			a(4) = 844:
mu(844) = mu(2*2*211) = 0;
mu(844+1) = mu(5*13*13) = 0;
mu(844+2) = mu(2*3*3*47) = 0;
mu(844+3) = mu(7*11*11) = 0;
mu(844+4) = mu(2*2*2*2*53) = 0.
		

Crossrefs

Cf. A008683 (Möbius function mu), A124300.

Programs

  • PARI
    a(n)={x=1;k=moebius(x);y=n+x;while(xJinyuan Wang, Apr 06 2019
    
  • Python
    from itertools import count
    from sympy import mobius
    def A124301(n):
        c, m = 1, 1
        for i in count(2):
            k = mobius(i)
            if m!=k:
                if c>n:
                    return i-c
                c = 0
            c += 1
            m = k # Chai Wah Wu, Oct 08 2024

Extensions

a(7)-a(8) from Peter T. Wang (peterw(AT)ugcs.caltech.edu), Feb 04 2007
Name edited by and a(9)-a(10) from Jinyuan Wang, Apr 06 2019