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.

A137485 Numbers with 22 divisors.

Original entry on oeis.org

3072, 5120, 7168, 11264, 13312, 17408, 19456, 23552, 29696, 31744, 37888, 41984, 44032, 48128, 54272, 60416, 62464, 68608, 72704, 74752, 80896, 84992, 91136, 99328, 103424, 105472, 109568, 111616, 115712, 118098, 130048, 134144, 140288
Offset: 1

Views

Author

R. J. Mathar, Apr 22 2008

Keywords

Comments

Maple implementation: see A030513.
Numbers of the form p^21 or p*q^10, where p and q are distinct primes. - R. J. Mathar, Mar 01 2010

Crossrefs

Programs

  • Maple
    A137485=proc(q) local n;
    for n from 1 to q do if tau(n)=22 then print(n); fi; od; end:
    A137485(10^10);
  • Mathematica
    Select[Range[200000],DivisorSigma[0,#]==22&] (* Vladimir Joseph Stephan Orlovsky, May 05 2011 *)
  • PARI
    is(n)=numdiv(n)==22 \\ Charles R Greathouse IV, Jun 19 2016
    
  • Python
    from sympy import primepi, integer_nthroot, primerange
    def A137485(n):
        def bisection(f,kmin=0,kmax=1):
            while f(kmax) > kmax: kmax <<= 1
            kmin = kmax >> 1
            while kmax-kmin > 1:
                kmid = kmax+kmin>>1
                if f(kmid) <= kmid:
                    kmax = kmid
                else:
                    kmin = kmid
            return kmax
        def f(x): return n+x-sum(primepi(x//p**10) for p in primerange(integer_nthroot(x,10)[0]+1))+primepi(integer_nthroot(x,11)[0])-primepi(integer_nthroot(x,21)[0])
        return bisection(f,n,n) # Chai Wah Wu, Feb 21 2025

Formula

A000005(a(n))=22.