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.

Showing 1-2 of 2 results.

A246549 Prime powers p^e where p is a prime and e >= 3 (prime powers without 1, the primes, or the squares of primes).

Original entry on oeis.org

8, 16, 27, 32, 64, 81, 125, 128, 243, 256, 343, 512, 625, 729, 1024, 1331, 2048, 2187, 2197, 2401, 3125, 4096, 4913, 6561, 6859, 8192, 12167, 14641, 15625, 16384, 16807, 19683, 24389, 28561, 29791, 32768, 50653, 59049, 65536, 68921, 78125, 79507, 83521, 103823, 117649, 130321, 131072, 148877, 161051, 177147, 205379
Offset: 1

Views

Author

Joerg Arndt, Aug 29 2014

Keywords

Comments

Consists of 8 and the terms of A088247. - R. J. Mathar, Sep 01 2014

Crossrefs

Programs

  • Mathematica
    With[{nn=60},Take[Union[Flatten[Table[p^Range[3,nn/3],{p,Prime[ Range[ nn]]}]]],nn]] (* Harvey P. Dale, Dec 10 2015 *)
  • PARI
    for(n=1, 10^6, if(isprimepower(n)>=3, print1(n, ", ")));
    
  • PARI
    m=10^6; v=[]; forprime(p=2, m^(1/3), e=3; while(p^e<=m, v=concat(v, p^e); e++)); v=vecsort(v) \\ Faster program. Jens Kruse Andersen, Aug 29 2014
    
  • Python
    from math import isqrt
    from sympy import primerange, integer_nthroot, primepi
    def A246549(n):
        def g(x,a,b,c,m): yield from (((d,) for d in enumerate(primerange(b+1,isqrt(x//c)+1),a+1)) if m==2 else (((a2,b2),)+d for a2,b2 in enumerate(primerange(b+1,integer_nthroot(x//c,m)[0]+1),a+1) for d in g(x,a2,b2,c*b2,m-1)))
        def f(x): return int(n+x-sum(primepi(integer_nthroot(x, k)[0]) for k in range(3, x.bit_length())))
        def bisection(f,kmin=0,kmax=1):
            while f(kmax) > kmax: kmax <<= 1
            while kmax-kmin > 1:
                kmid = kmax+kmin>>1
                if f(kmid) <= kmid:
                    kmax = kmid
                else:
                    kmin = kmid
            return kmax
        return bisection(f,n,n) # Chai Wah Wu, Sep 11 2024

Formula

Sum_{n>=1} 1/a(n) = Sum_{p prime} 1/(p^2*(p-1)) = A152441. - Amiram Eldar, Oct 24 2020

A375146 Numbers whose prime factorization has exactly one exponent that is larger than 3.

Original entry on oeis.org

16, 32, 48, 64, 80, 81, 96, 112, 128, 144, 160, 162, 176, 192, 208, 224, 240, 243, 256, 272, 288, 304, 320, 324, 336, 352, 368, 384, 400, 405, 416, 432, 448, 464, 480, 486, 496, 512, 528, 544, 560, 567, 576, 592, 608, 624, 625, 640, 648, 656, 672, 688, 704, 720
Offset: 1

Views

Author

Amiram Eldar, Aug 01 2024

Keywords

Comments

Subsequence of A046101 and first differs from it at n = 98: A046101(98) = 1296 = 2^4 * 3^4 is not a term of this sequence.
Numbers k such that the powerful part of k, A057521(k), is a prime power whose exponent is larger than 3 (A246550).
The asymptotic density of this sequence is (1/zeta(4)) * Sum_{p prime} 1/(p^4-1) = 0.075131780079404733755... .

Examples

			16 = 2^4 is a term since its prime factorization has exactly one exponent, 4, that is larger than 3.
		

Crossrefs

Subsequence of A046101.

Programs

  • Mathematica
    q[n_] := Count[FactorInteger[n][[;;, 2]], _?(# > 3 &)] == 1; Select[Range[1000], q]
  • PARI
    is(k) = #select(x -> x > 3, factor(k)[, 2]) == 1;
Showing 1-2 of 2 results.