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-6 of 6 results.

A001694 Powerful numbers, definition (1): if a prime p divides n then p^2 must also divide n (also called squareful, square full, square-full or 2-powerful numbers).

Original entry on oeis.org

1, 4, 8, 9, 16, 25, 27, 32, 36, 49, 64, 72, 81, 100, 108, 121, 125, 128, 144, 169, 196, 200, 216, 225, 243, 256, 288, 289, 324, 343, 361, 392, 400, 432, 441, 484, 500, 512, 529, 576, 625, 648, 675, 676, 729, 784, 800, 841, 864, 900, 961, 968, 972, 1000
Offset: 1

Views

Author

Keywords

Comments

Numbers of the form a^2*b^3, a >= 1, b >= 1.
In other words, if the prime factorization of n is Product_k p_k^e_k then all e_k are greater than 1.
Numbers n such that Sum_{d|n} phi(d)*phi(n/d)*mu(d) > 0; places of nonzero A300717. - Benoit Cloitre, Nov 30 2002
This sequence is closed under multiplication. The primitive elements are A168363. - Franklin T. Adams-Watters, May 30 2011
Complement of A052485. - Reinhard Zumkeller, Sep 16 2011
The number of terms less than or equal to 10^k beginning with k = 0: 1, 4, 14, 54, 185, 619, 2027, 6553, 21044, ...: A118896. - Robert G. Wilson v, Aug 11 2014
a(10^n): 1, 49, 3136, 253472, 23002083, 2200079025, 215523459072, 21348015504200, 2125390162618116, ... . - Robert G. Wilson v, Aug 15 2014
a(m) mod prime(n) > 0 for m < A258599(n); a(A258599(n)) = A001248(n) = prime(n)^2. - Reinhard Zumkeller, Jun 06 2015
From Des MacHale, Mar 07 2021: (Start)
A number m is powerful if and only if |R/Z(R)| = m, for some finite non-commutative ring R.
A number m is powerful if and only if |G/Z(G)| = m, for some finite nilpotent class two group G (Reference Aine Nishe). (End)
Numbers n such that Sum_{k=1..n} phi(gcd(n,k))*mu(gcd(n,k)) > 0. - Richard L. Ollerton, May 09 2021

Examples

			1 is a term because for every prime p that divides 1, p^2 also divides 1.
2 is not a term since 2 divides 2 but 2^2 does not.
4 is a term because 2 is the only prime that divides 4 and 2^2 does divide 4. - _N. J. A. Sloane_, Jan 16 2022
		

References

  • G. E. Hardy and M. V. Subbarao, Highly powerful numbers, Congress. Numer. 37 (1983), 277-307.
  • Aleksandar Ivić, The Riemann Zeta-Function, Wiley, NY, 1985, see p. 407.
  • Richard A. Mollin, Quadratics, CRC Press, 1996, Section 1.6.
  • Aine NiShe, Commutativity and Generalisations in Finite Groups, Ph.D. Thesis, University College Cork, 2000.
  • Paulo Ribenboim, Meine Zahlen, meine Freunde, 2009, Springer, 9.1 Potente Zahlen, pp. 241-247.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • Gérald Tenenbaum, Introduction to analytic and probabilistic number theory, Cambridge University Press, 1995, p. 54, exercise 10 (in the third edition 2015, p. 63, exercise 70).

Crossrefs

Disjoint union of A062503 and A320966.
Cf. A007532 (Powerful numbers, definition (2)), A005934, A005188, A003321, A014576, A023052 (Powerful numbers, definition (3)), A046074, A013929, A076871, A258599, A001248, A112526, A168363, A224866, A261883, A300717.
Cf. A052485 (complement), A076446 (first differences), A376361, A376362.

Programs

  • Haskell
    a001694 n = a001694_list !! (n-1)
    a001694_list = filter ((== 1) . a112526) [1..]
    -- Reinhard Zumkeller, Nov 30 2012
    
  • Maple
    isA001694 := proc(n) for p in ifactors(n)[2] do if op(2,p) = 1 then return false; end if; end do; return true; end proc:
    A001694 := proc(n) option remember; if n = 1 then 1; else for a from procname(n-1)+1 do if isA001694(a) then return a; end if; end do; end if; end proc:
    seq(A001694(n),n=1..20) ; # R. J. Mathar, Jun 07 2011
  • Mathematica
    Join[{1}, Select[ Range@ 1250, Min@ FactorInteger[#][[All, 2]] > 1 &]]
    (* Harvey P. Dale, Sep 18 2011; modified by Robert G. Wilson v, Aug 11 2014 *)
    max = 10^3; Union@ Flatten@ Table[a^2*b^3, {b, max^(1/3)}, {a, Sqrt[max/b^3]}] (* Robert G. Wilson v, Aug 11 2014 *)
    nextPowerfulNumber[n_] := Block[{r = Range[ Floor[1 + n^(1/3)]]^3}, Min@ Select[ Sort[ r*Floor[1 + Sqrt[n/r]]^2], # > n &]]; NestList[ nextPowerfulNumber, 1, 55] (* Robert G. Wilson v, Aug 16 2014 *)
  • PARI
    isA001694(n)=n=factor(n)[,2];for(i=1,#n,if(n[i]==1,return(0)));1 \\ Charles R Greathouse IV, Feb 11 2011
    
  • PARI
    list(lim,mn=2)=my(v=List(),t); for(m=1,sqrtnint(lim\1,3), t=m^3; for(n=1,sqrtint(lim\t), listput(v,t*n^2))); Set(v) \\ Charles R Greathouse IV, Jul 31 2011; edited Sep 22 2015
    
  • PARI
    is=ispowerful \\ Charles R Greathouse IV, Nov 13 2012
    
  • Python
    from sympy import factorint
    A001694 = [1]+[n for n in range(2,10**6) if min(factorint(n).values()) > 1]
    # Chai Wah Wu, Aug 14 2014
    
  • Python
    from math import isqrt
    from sympy import mobius, integer_nthroot
    def A001694(n):
        def squarefreepi(n):
            return int(sum(mobius(k)*(n//k**2) for k in range(1, isqrt(n)+1)))
        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
        def f(x):
            c, l = n+x, 0
            j = isqrt(x)
            while j>1:
                k2 = integer_nthroot(x//j**2,3)[0]+1
                w = squarefreepi(k2-1)
                c -= j*(w-l)
                l, j = w, isqrt(x//k2**3)
            c -= squarefreepi(integer_nthroot(x,3)[0])-l
            return c
        return bisection(f,n,n) # Chai Wah Wu, Sep 09 2024
    
  • Sage
    sloane.A001694.list(54) # Peter Luschny, Feb 08 2015

Formula

A112526(a(n)) = 1. - Reinhard Zumkeller, Sep 16 2011
Bateman & Grosswald prove that there are zeta(3/2)/zeta(3) x^{1/2} + zeta(2/3)/zeta(2) x^{1/3} + O(x^{1/6}) terms up to x; see section 5 for a more precise error term. - Charles R Greathouse IV, Nov 19 2012
a(n) = A224866(n) - 1. - Reinhard Zumkeller, Jul 23 2013
Sum_{n>=1} 1/a(n) = zeta(2)*zeta(3)/zeta(6). - Ivan Neretin, Aug 30 2015
Sum_{n>=1} 1/a(n)^s = zeta(2*s)*zeta(3*s)/zeta(6*s), s > 1/2 (Golomb, 1970). - Amiram Eldar, Oct 02 2022

Extensions

More terms from Henry Bottomley, Mar 16 2000
Definition expanded by Jonathan Sondow, Jan 03 2016

A060355 Numbers k such that k and k+1 are powerful numbers.

Original entry on oeis.org

8, 288, 675, 9800, 12167, 235224, 332928, 465124, 1825200, 11309768, 384199200, 592192224, 4931691075, 5425069447, 13051463048, 221322261600, 443365544448, 865363202000, 8192480787000, 11968683934831, 13325427460800, 15061377048200, 28821995554247
Offset: 1

Views

Author

Jason Earls, Apr 01 2001

Keywords

Comments

"Erdős conjectured in 1975 that there do not exist three consecutive powerful integers." - Guy
See Guy for Erdős's conjecture and statement that this sequence is infinite. - Jud McCranie, Oct 13 2002
It is easy to see that this sequence is infinite: if k is in the sequence, so is 4*k*(k+1). - Franklin T. Adams-Watters, Sep 16 2009
The first of a run of three consecutive powerful numbers (conjectured to be empty) are just those in this sequence and A076445. - Charles R Greathouse IV, Nov 16 2012
Jaroslaw Wroblewski (see Prime Puzzles link) shows that there are infinitely many terms k in this sequence such that neither k nor k+1 is a square. - Charles R Greathouse IV, Nov 19 2012
Paul Erdős wrote of meeting Kurt Mahler in 1936: "I almost immediately posed him the following problem: ... are there infinitely many consecutive powerful numbers? Mahler immediately answered: Trivially, yes! x^2 - 8y^2 = 1 has infinitely many solutions. I was a bit crestfallen since I felt that I should have thought of this myself." - Jonathan Sondow, Feb 08 2015
Of the first 39 terms k, only 7 are such that neither k nor k+1 is a square. - Jon E. Schoenfield, Jun 12 2024

Examples

			1825200 belongs to this sequence because both 1825200 = 2^4 * 3^3 * 5^2 * 13^2 and 1825201 = 7^2 * 193^2 = 1351^2 are powerful numbers. - _Labos Elemer_, May 03 2001
		

References

  • J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 288, pp. 74, Ellipses, Paris 2008.
  • R. K. Guy, Unsolved Problems in Number Theory, B16.
  • P. Shiu, On the number of square-full integers between successive squares, Volume 27, Issue 2 (December 1980), pp. 171-178.

Crossrefs

Primitive elements are in A199801.
Cf. A076446 (first differences of A001694).

Programs

  • Haskell
    a060355 n = a060355_list !! (n-1)
    a060355_list = map a001694 $ filter ((== 1) . a076446) [1..]
    -- Reinhard Zumkeller, Jun 03 2015, Nov 30 2012
    
  • Mathematica
    f[n_]:=First[Union[Last/@FactorInteger[n]]];Select[Range[2000000],f[#]>1&&f[#+1]>1&] (* Vladimir Joseph Stephan Orlovsky, Jan 29 2012 *)
    SequencePosition[Table[If[Min[FactorInteger[n][[;;,2]]]>1,1,0],{n,11310000}],{1,1}][[;;,1]] (* The program generates the first 10 terms of the sequence. *) (* Harvey P. Dale, Mar 27 2024 *)
  • PARI
    is(n)=ispowerful(n)&&ispowerful(n+1) \\ Charles R Greathouse IV, Nov 16 2012
    
  • Sage
    def A060355(n):
        a = sloane.A001694
        return a.is_powerful(n) and a.is_powerful(n+1)
    [n for n in (1..333333) if A060355(n)] # Peter Luschny, Feb 08 2015

Extensions

Corrected and extended by Jud McCranie, Jul 08 2001
More terms from Jud McCranie, Oct 13 2002
a(22)-a(23) from Donovan Johnson, Jul 29 2011

A247246 Differences of consecutive Achilles numbers.

Original entry on oeis.org

36, 92, 88, 104, 40, 68, 148, 27, 125, 64, 104, 4, 153, 27, 171, 29, 20, 196, 232, 144, 56, 312, 280, 108, 188, 199, 113, 67, 189, 72, 344, 16, 112, 232, 268, 63, 45, 392, 292, 32, 76, 8, 80, 587, 50, 147, 456, 184, 288, 488, 115, 772, 137, 36, 40, 212, 248
Offset: 1

Views

Author

Eric Chen, Nov 28 2014

Keywords

Comments

29 is the first prime in this sequence, and it equals 1352 - 1323. Clearly, if the difference is prime, then these two Achilles numbers must be relatively prime, so primes appear in this sequence rarely. However, are there infinitely many n such that a(n) is prime?
The number 1 can also appear in this sequence, because it equals 5425069448 - 5425069447 = (2^3 * 26041^2) - (7^3 * 41^2 * 97^2). Does every natural number appear in this sequence? If so, do they appear infinitely often?

Crossrefs

Programs

  • Maple
    f:= proc(n) local E; E:= map(t->t[2], ifactors(n)[2]); min(E)>1 and igcd(op(E))=1 end proc:
    Achilles:= select(f, [$1..10^5]):
    seq(Achilles[i+1]-Achilles[i],i=1..nops(Achilles)-1); # Robert Israel, Dec 13 2014
  • Mathematica
    achillesQ[n_] := With[{ee = FactorInteger[n][[All, 2]]}, Min[ee] > 1 && GCD @@ ee == 1];
    Select[Range[10^4], achillesQ] // Differences (* Jean-François Alcover, Sep 26 2020 *)
  • PARI
    isA052486(n) = { n>1 & vecmin(factor(n)[, 2])>1 & !ispower(n); }
    lista(nn) = {v = select(n->isA052486(n), vector(nn, i, i)); vector(#v-1, n, v[n+1] - v[n]);} \\ Michel Marcus, Nov 29 2014
    
  • Python
    from math import isqrt
    from sympy import mobius, integer_nthroot
    def A247246(n):
        def squarefreepi(n):
            return int(sum(mobius(k)*(n//k**2) for k in range(1, isqrt(n)+1)))
        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
        def f(x):
            c, l = n+x+1, 0
            j = isqrt(x)
            while j>1:
                k2 = integer_nthroot(x//j**2,3)[0]+1
                w = squarefreepi(k2-1)
                c -= j*(w-l)
                l, j = w, isqrt(x//k2**3)
            c -= squarefreepi(integer_nthroot(x,3)[0])-l+sum(mobius(k)*(integer_nthroot(x, k)[0]-1) for k in range(2, x.bit_length()))
            return c
        return -(a:=bisection(f,n,n))+bisection(lambda x:f(x)+1,a,a) # Chai Wah Wu, Sep 10 2024

Formula

a(n) = A052486(n+1) - A052486(n).

A358173 First differences of A286708.

Original entry on oeis.org

36, 28, 8, 36, 52, 4, 16, 9, 63, 36, 68, 8, 32, 9, 43, 16, 76, 72, 27, 1, 108, 16, 64, 36, 68, 4, 28, 89, 36, 27, 4, 69, 71, 27, 29, 20, 72, 77, 47, 32, 128, 36, 36, 136, 8, 56, 25, 91, 188, 8, 188, 92, 9, 99, 4, 40, 144, 28, 109, 62, 49, 64, 49, 18, 97, 11, 81
Offset: 1

Views

Author

Michael De Vlieger, Nov 01 2022

Keywords

Comments

Consider the sequence of powerful numbers A001694, superset of A246547, the sequence of composite prime powers. Let s = A001694(k) such that omega(s) > 1 be followed by t = A001694(k+1) such that omega(t) = 1.
Since A286708 = A001694 \ A246547, prime powers t are missing in A286708. We consider s = A286708(j) and note that the difference A286708(j+1) - A286708(j) > A001694(k+1) - A001694(k).
Therefore we see a subset S containing s in A286708 that plots "out of place" with respect to the complementary subset R = A286708 \ S; some of this subset S exceeds the maxima of R in the scatterplot of this sequence. The plot of the R resembles the scatterplot of A001694.

Examples

			The number 36 is the smallest powerful number that is not a prime power; the next powerful number that is not a prime power is 72, and their difference is 36, hence a(1) = 36.
		

Crossrefs

Programs

  • Mathematica
    With[{nn = 2^25}, Differences@ Select[Rest@ Union@ Flatten@ Table[a^2*b^3, {b, nn^(1/3)}, {a, Sqrt[nn/b^3]}], ! PrimePowerQ[#] &]]
  • Python
    from math import isqrt
    from sympy import integer_nthroot, primepi, mobius
    def A358173(n):
        def squarefreepi(n): return int(sum(mobius(k)*(n//k**2) for k in range(1, isqrt(n)+1)))
        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
        def f(x):
            c, l = n+x+1+sum(primepi(integer_nthroot(x, k)[0]) for k in range(2, x.bit_length())), 0
            j = isqrt(x)
            while j>1:
                k2 = integer_nthroot(x//j**2,3)[0]+1
                w = squarefreepi(k2-1)
                c -= j*(w-l)
                l, j = w, isqrt(x//k2**3)
            c -= squarefreepi(integer_nthroot(x,3)[0])-l
            return c
        return -(a:=bisection(f,n,n))+bisection(lambda x:f(x)+1,a,a) # Chai Wah Wu, Sep 10 2024

A378593 Number of squarefree k between consecutive powerful numbers (inclusive).

Original entry on oeis.org

3, 3, 0, 5, 5, 1, 3, 3, 8, 8, 6, 5, 11, 6, 8, 2, 1, 11, 14, 17, 2, 11, 6, 11, 7, 20, 0, 22, 10, 10, 18, 6, 20, 6, 28, 9, 8, 9, 28, 30, 14, 17, 0, 32, 33, 12, 24, 12, 22, 37, 4, 3, 17, 16, 36, 24, 16, 3, 42, 44, 18, 4, 13, 11, 2, 45, 46, 29, 20, 48, 26, 22, 23
Offset: 1

Views

Author

Michael De Vlieger, Dec 09 2024

Keywords

Examples

			a(1) = 3 since {[1], 2, 3, [4]} has 3 squarefree numbers.
a(2) = 3 since {[4], 5, 6, 7, [8]} has 3 squarefree numbers.
a(3) = 0 since {[8], [9]} has no squarefree numbers.
a(4) = 5 since between 9 and 16, {10, 11, 13, 14, 15} are squarefree.
a(5) = 5 since between 16 and 25, {17, 19, 21, 22, 23} are squarefree, etc.
		

Crossrefs

Programs

  • Mathematica
    With[{nn = 2^12},
      s = Union@ Flatten@ Table[a^2*b^3, {b, Surd[nn, 3]}, {a, Sqrt[nn/b^3]}];  Table[Count[Range[s[[i]], s[[i + 1]]], _?SquareFreeQ], {i, Length[s] - 1}] ]

Formula

a(n) > A076446(n) for n > 1.
a(n) >= A240590(n).

A378897 Number of integers that are neither squarefree nor prime powers between consecutive powerful numbers, exclusive of powerful numbers themselves.

Original entry on oeis.org

0, 0, 0, 1, 3, 0, 1, 0, 4, 6, 1, 3, 7, 1, 4, 1, 1, 4, 10, 9, 1, 4, 2, 6, 5, 11, 0, 12, 8, 7, 12, 1, 11, 2, 14, 6, 3, 7, 18, 18, 8, 9, 0, 20, 21, 3, 16, 10, 13, 23, 2, 0, 10, 7, 28, 11, 10, 0, 26, 26, 8, 3, 7, 5, 0, 26, 30, 17, 11, 32, 20, 13, 12, 20, 36, 1, 20
Offset: 1

Views

Author

Michael De Vlieger, Dec 10 2024

Keywords

Comments

Also the number of terms in A126706 between powerful terms, exclusive of powerful terms. Therefore 36, which is both in A126706 and in A001694, is not counted.

Examples

			Let s = A001694, powerful numbers.
Let t = A013929, nonsquarefree numbers.
a(1..3) = 0 since t(1) = 12 while s(1) = 1, s(2) = 4, s(3) = 8, and s(4) = 9.
a(4) = 1 since s(5) < t(1) < s(6), i.e., 9 < 12 < 16.
a(5) = 3 since between s(6) = 16 and s(7) = 25, we have t(2..4) = {18, 20, 24}.
a(6) = 0 since s(7) < 26 < s(8), where s(8) = 27, and 26 is squarefree.
a(7) = 1 since s(8) < t(5) < s(9), where t(5) = 28 and s(9) = 32,
a(8) = 0 since there are no nonsquarefree numbers between s(9) = 32 and s(10) = 36, etc.
		

Crossrefs

Programs

  • Mathematica
    With[{nn = 2^12},  s = Union@ Flatten@ Table[a^2*b^3, {b, Surd[nn, 3]}, {a, Sqrt[nn/b^3]}];  Table[Count[Range[s[[i]] + 1, s[[i + 1]] - 1],     _?(Not@*SquareFreeQ)], {i, Length[s] - 1}] ]

Formula

a(n) = A076446(n) - A378593(n) - 1 for n > 1.
Showing 1-6 of 6 results.