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-10 of 13 results. Next

A164521 Primes of the form A162142(k) - 2.

Original entry on oeis.org

3373, 753569, 2146687, 3048623, 6539201, 8120599, 10218311, 17373977, 18609623, 19034161, 32461757, 44738873, 59776469, 69426529, 72511711, 77854481, 88121123, 116930167, 133432829, 299418307, 338608871, 413493623, 458314009, 679151437
Offset: 1

Views

Author

Keywords

Comments

Primes p such that p+2 is the cube of a squarefree semiprime, i.e., such that p+2 = q^3*r^3 where q and r are two distinct primes.

Examples

			3373 + 2 = 3375 = 3^3*5^3. 753569 + 1 = 753571 = 7^3*13^3.
		

Crossrefs

Programs

  • Maple
    N:= 10^10: # to get all terms <= N
    P:= select(isprime, [seq(i,i=3..floor((N+2)^(1/3)/3))]):
    R:= NULL:
    for i from 1 to nops(P) do
        for j from 1 to i-1 do
          p:= (P[i]*P[j])^3-2;
          if p > N then break fi;
          if isprime(p) then R:= R, p fi
    od od:
    sort([R]); # Robert Israel, Jun 05 2018
  • Mathematica
    f3[n_]:=FactorInteger[n][[1,2]]==3&&Length[FactorInteger[n]]==2&&FactorInteger[n][[2, 2]]==3; lst={};Do[p=Prime[n];If[f3[p+2],AppendTo[lst,p]],{n,4,4*9!}];  lst
    csfsQ[n_]:=Module[{c=Surd[n+2,3]},SquareFreeQ[c]&&PrimeOmega[c]==2]; Select[Prime[Range[353*10^5]],csfsQ] (* Harvey P. Dale, Jan 07 2018 *)

Extensions

Edited and examples corrected by R. J. Mathar, Aug 21 2009

A101296 n has the a(n)-th distinct prime signature.

Original entry on oeis.org

1, 2, 2, 3, 2, 4, 2, 5, 3, 4, 2, 6, 2, 4, 4, 7, 2, 6, 2, 6, 4, 4, 2, 8, 3, 4, 5, 6, 2, 9, 2, 10, 4, 4, 4, 11, 2, 4, 4, 8, 2, 9, 2, 6, 6, 4, 2, 12, 3, 6, 4, 6, 2, 8, 4, 8, 4, 4, 2, 13, 2, 4, 6, 14, 4, 9, 2, 6, 4, 9, 2, 15, 2, 4, 6, 6, 4, 9, 2, 12, 7, 4, 2, 13, 4, 4, 4, 8, 2, 13, 4, 6, 4, 4, 4, 16, 2, 6, 6, 11, 2, 9, 2, 8, 9, 4, 2, 15, 2, 9, 4, 12, 2, 9, 4, 6, 6, 4, 4, 17
Offset: 1

Views

Author

David Wasserman, Dec 21 2004

Keywords

Comments

From Antti Karttunen, May 12 2017: (Start)
Restricted growth sequence transform of A046523, the least representative of each prime signature. Thus this partitions the natural numbers to the same equivalence classes as A046523, i.e., for all i, j: a(i) = a(j) <=> A046523(i) = A046523(j), and for that reason satisfies in that respect all the same conditions as A046523. For example, we have, for all i, j: if a(i) = a(j), then:
A000005(i) = A000005(j), A008683(i) = A008683(j), A286605(i) = A286605(j).
So, this sequence (instead of A046523) can be used for finding sequences where a(n)'s value is dependent only on the prime signature of n, that is, only on the multiset of prime exponents in the factorization of n. (End)
This is also the restricted growth sequence transform of many other sequences, for example, that of A181819. See further comments there. - Antti Karttunen, Apr 30 2022

Examples

			From _David A. Corneth_, May 12 2017: (Start)
1 has prime signature (), the first distinct prime signature. Therefore, a(1) = 1.
2 has prime signature (1), the second distinct prime signature after (1). Therefore, a(2) = 2.
3 has prime signature (1), as does 2. Therefore, a(3) = a(2) = 2.
4 has prime signature (2), the third distinct prime signature after () and (1). Therefore, a(4) = 3. (End)
From _Antti Karttunen_, May 12 2017: (Start)
Construction of restricted growth sequences: In this case we start with a(1) = 1 for A046523(1) = 1, and thereafter, for all n > 1, we use the least so far unused natural number k for a(n) if A046523(n) has not been encountered before, otherwise [whenever A046523(n) = A046523(m), for some m < n], we set a(n) = a(m).
For n = 2, A046523(2) = 2, which has not been encountered before (first prime), thus we allot for a(2) the least so far unused number, which is 2, thus a(2) = 2.
For n = 3, A046523(2) = 2, which was already encountered as A046523(1), thus we set a(3) = a(2) = 2.
For n = 4, A046523(4) = 4, not encountered before (first square of prime), thus we allot for a(4) the least so far unused number, which is 3, thus a(4) = 3.
For n = 5, A046523(5) = 2, as for the first time encountered at n = 2, thus we set a(5) = a(2) = 2.
For n = 6, A046523(6) = 6, not encountered before (first semiprime pq with distinct p and q), thus we allot for a(6) the least so far unused number, which is 4, thus a(6) = 4.
For n = 8, A046523(8) = 8, not encountered before (first cube of a prime), thus we allot for a(8) the least so far unused number, which is 5, thus a(8) = 5.
For n = 9, A046523(9) = 4, as for the first time encountered at n = 4, thus a(9) = 3.
(End)
From _David A. Corneth_, May 12 2017: (Start)
(Rough) description of an algorithm of computing the sequence:
Suppose we want to compute a(n) for n in [1..20].
We set up a vector of 20 elements, values 0, and a number m = 1, the minimum number we haven't checked and c = 0, the number of distinct prime signatures we've found so far.
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
We check the prime signature of m and see that it's (). We increase c with 1 and set all elements up to 20 with prime signature () to 1. In the process, we adjust m. This gives:
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]. The least number we haven't checked is m = 2. 2 has prime signature (1). We increase c with 1 and set all elements up to 20 with prime signature (1) to 2. In the process, we adjust m. This gives:
[1, 2, 2, 0, 2, 0, 2, 0, 0, 0, 2, 0, 2, 0, 0, 0, 2, 0, 2, 0]
We check the prime signature of m = 4 and see that its prime signature is (2). We increase c with 1 and set all numbers up to 20 with prime signature (2) to 3. This gives:
[1, 2, 2, 3, 2, 0, 2, 0, 3, 0, 2, 0, 2, 0, 0, 0, 2, 0, 2, 0]
Similarily, after m = 6, we get
[1, 2, 2, 3, 2, 4, 2, 0, 3, 4, 2, 0, 2, 4, 4, 0, 2, 0, 2, 0], after m = 8 we get:
[1, 2, 2, 3, 2, 4, 2, 5, 3, 4, 2, 0, 2, 4, 4, 0, 2, 0, 2, 0], after m = 12 we get:
[1, 2, 2, 3, 2, 4, 2, 5, 3, 4, 2, 6, 2, 4, 4, 0, 2, 6, 2, 0], after m = 16 we get:
[1, 2, 2, 3, 2, 4, 2, 5, 3, 4, 2, 6, 2, 4, 4, 7, 2, 6, 2, 0], after m = 20 we get:
[1, 2, 2, 3, 2, 4, 2, 5, 3, 4, 2, 6, 2, 4, 4, 7, 2, 6, 2, 8]. Now, m > 20 so we stop. (End)
The above method is inefficient, because the step "set all elements a(n) up to n = Nmax with prime signature s(n) = S[c] to c" requires factoring all integers up to Nmax (or at least comparing their signature, once computed, with S[c]) again and again. It is much more efficient to run only once over each m = 1..Nmax, compute its prime signature s(m), add it to an ordered list in case it did not occur earlier, together with its "rank" (= new size of the list), and assign that rank to a(m). The list of prime signatures is much shorter than [1..Nmax]. One can also use m'(m) := the smallest n with the prime signature of m (which is faster to compute than to search for the signature) as representative for s(m), and set a(m) := a(m'(m)). Then it is sufficient to have just one counter (number of prime signatures seen so far) as auxiliary variable, in addition to the sequence to be computed. - _M. F. Hasler_, Jul 18 2019
		

Crossrefs

Cf. A025487, A046523, A064839 (ordinal transform of this sequence), A181819, and arrays A095904, A179216.
Sequences that are unions of finite number (>= 2) of equivalence classes determined by the values that this sequence obtains (i.e., sequences mentioned in David A. Corneth's May 12 2017 formula): A001358 (A001248 U A006881, values 3 & 4), A007422 (values 1, 4, 5), A007964 (2, 3, 4, 5), A014612 (5, 6, 9), A030513 (4, 5), A037143 (1, 2, 3, 4), A037144 (1, 2, 3, 4, 5, 6, 9), A080258 (6, 7), A084116 (2, 4, 5), A167171 (2, 4), A217856 (6, 9).
Cf. also A077462, A305897 (stricter variants, with finer partitioning) and A254524, A286603, A286605, A286610, A286619, A286621, A286622, A286626, A286378 for other similarly constructed sequences.

Programs

  • Maple
    A101296 := proc(n)
        local a046523, a;
        a046523 := A046523(n) ;
        for a from 1 do
            if A025487(a) = a046523 then
                return a;
            elif A025487(a) > a046523 then
                return -1 ;
            end if;
        end do:
    end proc: # R. J. Mathar, May 26 2017
  • Mathematica
    With[{nn = 120}, Function[s, Table[Position[Keys@s, k_ /; MemberQ[k, n]][[1, 1]], {n, nn}]]@ Map[#1 -> #2 & @@ # &, Transpose@ {Values@ #, Keys@ #}] &@ PositionIndex@ Table[Times @@ MapIndexed[Prime[First@ #2]^#1 &, Sort[FactorInteger[n][[All, -1]], Greater]] - Boole[n == 1], {n, nn}] ] (* Michael De Vlieger, May 12 2017, Version 10 *)
  • PARI
    find(ps, vps) = {for (k=1, #vps, if (vps[k] == ps, return(k)););}
    lisps(nn) = {vps = []; for (n=1, nn, ps = vecsort(factor(n)[,2]); ips = find(ps, vps); if (! ips, vps = concat(vps, ps); ips = #vps); print1(ips, ", "););} \\ Michel Marcus, Nov 15 2015; edited by M. F. Hasler, Jul 16 2019
    
  • PARI
    rgs_transform(invec) = { my(occurrences = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(occurrences,invec[i]), my(pp = mapget(occurrences, invec[i])); outvec[i] = outvec[pp] , mapput(occurrences,invec[i],i); outvec[i] = u; u++ )); outvec; };
    write_to_bfile(start_offset,vec,bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)-1, " ", vec[n])); }
    write_to_bfile(1,rgs_transform(vector(100000,n,A046523(n))),"b101296.txt");
    \\ Antti Karttunen, May 12 2017

Formula

A025487(a(n)) = A046523(n).
Indices of records give A025487. - Michel Marcus, Nov 16 2015
From David A. Corneth, May 12 2017: (Start) [Corresponding characteristic function in brackets]
a(A000012(n)) = 1 (sig.: ()). [A063524]
a(A000040(n)) = 2 (sig.: (1)). [A010051]
a(A001248(n)) = 3 (sig.: (2)). [A302048]
a(A006881(n)) = 4 (sig.: (1,1)). [A280710]
a(A030078(n)) = 5 (sig.: (3)).
a(A054753(n)) = 6 (sig.: (1,2)). [A353472]
a(A030514(n)) = 7 (sig.: (4)).
a(A065036(n)) = 8 (sig.: (1,3)).
a(A007304(n)) = 9 (sig.: (1,1,1)). [A354926]
a(A050997(n)) = 10 (sig.: (5)).
a(A085986(n)) = 11 (sig.: (2,2)).
a(A178739(n)) = 12 (sig.: (1,4)).
a(A085987(n)) = 13 (sig.: (1,1,2)).
a(A030516(n)) = 14 (sig.: (6)).
a(A143610(n)) = 15 (sig.: (2,3)).
a(A178740(n)) = 16 (sig.: (1,5)).
a(A189975(n)) = 17 (sig.: (1,1,3)).
a(A092759(n)) = 18 (sig.: (7)).
a(A189988(n)) = 19 (sig.: (2,4)).
a(A179643(n)) = 20 (sig.: (1,2,2)).
a(A189987(n)) = 21 (sig.: (1,6)).
a(A046386(n)) = 22 (sig.: (1,1,1,1)).
a(A162142(n)) = 23 (sig.: (2,2,2)).
a(A179644(n)) = 24 (sig.: (1,1,4)).
a(A179645(n)) = 25 (sig.: (8)).
a(A179646(n)) = 26 (sig.: (2,5)).
a(A163569(n)) = 27 (sig.: (1,2,3)).
a(A179664(n)) = 28 (sig.: (1,7)).
a(A189982(n)) = 29 (sig.: (1,1,1,2)).
a(A179666(n)) = 30 (sig.: (3,4)).
a(A179667(n)) = 31 (sig.: (1,1,5)).
a(A179665(n)) = 32 (sig.: (9)).
a(A189990(n)) = 33 (sig.: (2,6)).
a(A179669(n)) = 34 (sig.: (1,2,4)).
a(A179668(n)) = 35 (sig.: (1,8)).
a(A179670(n)) = 36 (sig.: (1,1,1,3)).
a(A179671(n)) = 37 (sig.: (3,5)).
a(A162143(n)) = 38 (sig.: (2,2,2)).
a(A179672(n)) = 39 (sig.: (1,1,6)).
a(A030629(n)) = 40 (sig.: (10)).
a(A179688(n)) = 41 (sig.: (1,3,3)).
a(A179689(n)) = 42 (sig.: (2,7)).
a(A179690(n)) = 43 (sig.: (1,1,2,2)).
a(A189991(n)) = 44 (sig.: (4,4)).
a(A179691(n)) = 45 (sig.: (1,2,5)).
a(A179692(n)) = 46 (sig.: (1,9)).
a(A179693(n)) = 47 (sig.: (1,1,1,4)).
a(A179694(n)) = 48 (sig.: (3,6)).
a(A179695(n)) = 49 (sig.: (2,2,3)).
a(A179696(n)) = 50 (sig.: (1,1,7)).
(End)

Extensions

Data section extended to 120 terms by Antti Karttunen, May 12 2017
Minor edits/corrections by M. F. Hasler, Jul 18 2019

A162143 Numbers that are the squares of the product of three distinct primes.

Original entry on oeis.org

900, 1764, 4356, 4900, 6084, 10404, 11025, 12100, 12996, 16900, 19044, 23716, 27225, 28900, 30276, 33124, 34596, 36100, 38025, 49284, 52900, 53361, 56644, 60516, 65025, 66564, 70756, 74529, 79524, 81225, 81796, 84100, 96100, 101124, 103684, 119025, 125316, 127449
Offset: 1

Views

Author

Keywords

Comments

Numbers that are the product of exactly 3 distinct squares of primes (p^2*q^2*r^2).

Examples

			900 = 2^2*3^2*5^2, 1764 = 2^2*3^2*7^2, 4356 = 2^2*3^2*11^2, ..
		

Crossrefs

Programs

  • Maple
    h := proc(n) local P; P := NumberTheory:-PrimeFactors(n); nops(P) = 3 and n = mul(P) end:
    A162143List := upto -> seq(n^2, n=select(h, [seq(1..upto)])):  # Peter Luschny, Apr 14 2025
  • Mathematica
    fQ[n_]:=Last/@FactorInteger[n]=={2,2,2}; Select[Range[100000], f]
  • Python
    from math import isqrt
    from sympy import primepi, primerange, integer_nthroot
    def A162143(n):
        def f(x): return int(n+x-sum(primepi(x//(k*m))-b for a,k in enumerate(primerange(integer_nthroot(x,3)[0]+1),1) for b,m in enumerate(primerange(k+1,isqrt(x//k)+1),a+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
        return bisection(f)**2 # Chai Wah Wu, Aug 29 2024
    
  • SageMath
    def is_a(n):
        P = prime_divisors(n)
        return len(P) == 3 and prod(P) == n
    print([n*n for n in range(1, 439) if is_a(n)]) # Peter Luschny, Apr 14 2025

Formula

a(n) = A007304(n)^2.
A050326(a(n)) = 8. - Reinhard Zumkeller, May 03 2013
Sum_{n>=1} 1/a(n) = (P(2)^3 + 2*P(6) - 3*P(2)*P(4))/6 = (A085548^3 + 2*A085966 - 3*A085548*A085964)/6 = 0.0036962441..., where P is the prime zeta function. - Amiram Eldar, Oct 30 2020

Extensions

Edited by N. J. A. Sloane, Jun 27 2009

A376936 Powerful numbers divisible by cubes of 2 distinct primes.

Original entry on oeis.org

216, 432, 648, 864, 1000, 1296, 1728, 1944, 2000, 2592, 2744, 3375, 3456, 3888, 4000, 5000, 5184, 5400, 5488, 5832, 6912, 7776, 8000, 9000, 9261, 10000, 10125, 10368, 10584, 10648, 10800, 10976, 11664, 13500, 13824, 15552, 16000, 16200, 16875, 17496, 17576, 18000
Offset: 1

Views

Author

Michael De Vlieger, Oct 16 2024

Keywords

Comments

Numbers m with coreful divisors d, m/d such that neither d | m/d nor m/d | d, i.e., numbers m such that there exists a divisor pair (d, m/d) such that rad(d) = rad(m/d) but gcd(d, m/d) > 1 is neither d nor m/d, where rad = A007947. Divisors in each pair must be dissimilar and each in A126706.
Proper subset of A320966.
Contains A372695, A177493, and A162142. Does not contain A085986.

Examples

			216 is in the sequence since rad(12) | rad(18), but 12 does not divide 18 and 18 does not divide 12.
432 is a term since rad(18) | rad(24), but 18 does not divide 24 and 24 does not divide 18.
Table of coreful divisors d, a(n)/d such that neither d | a(n)/d nor a(n)/d | d for select a(n)
   n |   a(n)   divisor pairs d X a(n)/d
  ---------------------------------------------------------------------------
   1 |   216:   12 X 18;
   2 |   432:   18 X 24;
   3 |   648:   12 X 54;
   4 |   864:   24 X 36, 18 X 48;
   5 |  1000:   20 X 50;
   6 |  1296:   24 X 54;
   7 |  1728:   18 X 96, 36 X 48;
   8 |  1944:   12 X 162, 36 X 54;
   9 |  2000:   40 X 50;
  10 |  2592:   24 X 108, 48 X 54;
  11 |  2744:   28 X 98;
  12 |  3375:   45 X 75;
  13 |  3456:   18 X 192, 36 X 96, 48 X 72;
  22 |  7776:   24 X 324, 48 X 162, 54 X 144, 72 X 108;
  58 | 31104:   48 X 648, 54 X 576, 96 X 324, 108 X 288, 144 X 216, 162 X 192
		

Crossrefs

Programs

  • Mathematica
    Union@ Select[
      Flatten@ Table[a^2*b^3, {b, Surd[#, 3]}, {a, Sqrt[#/b^3]}] &[20000],
      Length@ Select[FactorInteger[#][[All, -1]], # > 2 &] >= 2 &]

Formula

Sum_{n>=1} 1/a(n) = zeta(2)*zeta(3)/zeta(6) - (15/Pi^2) * (1 + Sum_{prime} 1/((p-1)*(p^2+1))) = 0.021194288968234037106579437374641326044... . - Amiram Eldar, Nov 08 2024

A238748 Numbers k such that each integer that appears in the prime signature of k appears an even number of times.

Original entry on oeis.org

1, 6, 10, 14, 15, 21, 22, 26, 33, 34, 35, 36, 38, 39, 46, 51, 55, 57, 58, 62, 65, 69, 74, 77, 82, 85, 86, 87, 91, 93, 94, 95, 100, 106, 111, 115, 118, 119, 122, 123, 129, 133, 134, 141, 142, 143, 145, 146, 155, 158, 159, 161, 166, 177, 178, 183, 185, 187, 194
Offset: 1

Views

Author

Matthew Vandermast, May 08 2014

Keywords

Comments

Values of n for which all numbers in row A238747(n) are even. Also, numbers n such that A000005(n^m) is a perfect square for all nonnegative integers m; numbers n such that A181819(n) is a perfect square; numbers n such that A182860(n) is odd.
The numbers of terms not exceeding 10^k, for k = 1, 2, ..., are 3, 33, 314, 3119, 31436, 315888, 3162042, 31626518, 316284320, 3162915907, ... . Apparently, the asymptotic density of this sequence exists and equals 0.3162... . - Amiram Eldar, Nov 28 2023

Examples

			The prime signature of 36 = 2^2 * 3^2 is {2,2}. One distinct integer (namely, 2) appears in the prime signature, and it appears an even number of times (2 times). Hence, 36 appears in the sequence.
The prime factorization of 1260 = 2^2 * 3^2 * 5^1 * 7^1. Exponent 2 occurs twice (an even number of times), as well as exponent 1, thus 1260 is included. It is also the first term k > 1 in this sequence for which A182850(k) = 4, not 3. - _Antti Karttunen_, Feb 06 2016
		

Crossrefs

Programs

  • Mathematica
    q[n_] := n == 1 || AllTrue[Tally[FactorInteger[n][[;; , 2]]][[;; , 2]], EvenQ]; Select[Range[200], q] (* Amiram Eldar, Nov 28 2023 *)
  • PARI
    is(n) = {my(e = factor(n)[, 2], m = #e); if(m%2, return(0)); e = vecsort(e); forstep(i = 1, m, 2, if(e[i] != e[i+1], return(0))); 1;} \\ Amiram Eldar, Nov 28 2023
  • Scheme
    (define A238748 (MATCHING-POS 1 1 (lambda (n) (square? (A181819 n)))))
    (define (square? n) (not (zero? (A010052 n))))
    ;; Requires also MATCHING-POS macro from my IntSeq-library - Antti Karttunen, Feb 06 2016
    

A255231 The number of factorizations n = Product_i b_i^e_i, where all bases b_i are distinct, and all exponents e_i are distinct >=1.

Original entry on oeis.org

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

Views

Author

Saverio Picozzi, Feb 18 2015

Keywords

Comments

Not multiplicative: a(48) = a(2^4*3) = 5 <> a(2^4)*a(3) = 4*1 = 4. - R. J. Mathar, Nov 05 2016

Examples

			From _R. J. Mathar_, Nov 05 2016: (Start)
a(4)=2: 4^1 = 2^2.
a(8)=2: 8^1 = 2^3.
a(9)=2: 9^1 = 3^2.
a(12)=2: 12^1 = 2^2*3^1.
a(16)=4: 16^1 = 4^2 = 2^2*4^1 = 2^4.
a(18)=2: 18^1 = 2*3^2.
a(20)=2: 20^1 = 2^2*5^1.
a(24)=3: 24^1 = 2^2*6^1 = 2^3*3^1.
a(32)=5: 32^1 = 2^1*4^2 = 2^2*8^1 = 2^3*4^1 = 2^5.
a(36)=4: 36^1 = 6^2 = 3^2*4^1 = 2^2*9^1.
a(48)=5: 48^1 = 3^1*4^2 = 2^2*12^1 = 2^3*6^1 = 2^4*3^1.
a(60)=2 : 60^1 = 2^2*15^1.
a(64)=7: 64^1 = 8^2 = 4^3 = 2^2*16^1 = 2^3*8^1 = 2^4*4^1 = 2^6.
a(72)=6 : 72^1 = 3^2*8^1 = 2^1*6^2 = 2^2*18^1 = 2^3*9^1 = 2^3*3^2.
(End)
		

Crossrefs

Cf. A000688 (b_i not necessarily distinct).

Programs

  • Maple
    # Count solutions for products if n = dvs_i^exps(i) where i=1..pividx are fixed
    Apiv := proc(n,dvs,exps,pividx)
        local dvscnt, expscopy,i,a,expsrt,e ;
        dvscnt := nops(dvs) ;
        a := 0 ;
        if pividx > dvscnt then
            # have exhausted the exponent list: leave of the recursion
            # check that dvs_i^exps(i) is a representation
            if n = mul( op(i,dvs)^op(i,exps),i=1..dvscnt) then
                # construct list of non-0 exponents
                expsrt := [];
                for i from 1 to dvscnt do
                    if op(i,exps) > 0 then
                        expsrt := [op(expsrt),op(i,exps)] ;
                    end if;
                end do;
                # check that list is duplicate-free
                if nops(expsrt) = nops( convert(expsrt,set)) then
                    return 1;
                else
                    return 0;
                end if;
            else
                return 0 ;
            end if;
        end if;
        # need a local copy of the list to modify it
        expscopy := [] ;
        for i from 1 to nops(exps) do
            expscopy := [op(expscopy),op(i,exps)] ;
        end do:
        # loop over all exponents assigned to the next base in the list.
        for e from 0 do
            candf := op(pividx,dvs)^e ;
            if modp(n,candf) <> 0 then
                break;
            end if;
            # assign e to the local copy of exponents
            expscopy := subsop(pividx=e,expscopy) ;
            a := a+procname(n,dvs,expscopy,pividx+1) ;
        end do:
        return a;
    end proc:
    A255231 := proc(n)
        local dvs,dvscnt,exps ;
        if n = 1 then
            return 1;
        end if;
        # candidates for the bases are all divisors except 1
        dvs := convert(numtheory[divisors](n) minus {1},list) ;
        dvscnt := nops(dvs) ;
        # list of exponents starts at all-0 and is
        # increased recursively
        exps := [seq(0,e=1..dvscnt)] ;
        # take any subset of dvs for the bases, i.e. exponents 0 upwards
        Apiv(n,dvs,exps,1) ;
    end proc:
    seq(A255231(n),n=1..120) ; # R. J. Mathar, Nov 05 2016

Formula

a(n)=1 for all n in A005117. a(n)=2 for all n in A001248 and for all n in A054753 and for all n in A085987 and for all n in A030078. a(n)=3 for all n in A065036. a(n)=4 for all n in A085986 and for all n in A030514. a(n)=5 for all n in A178739, all n in A179644 and for all n in A050997. a(n)=6 for all n in A143610, all n in A162142 and all n in A178740. a(n)=7 for all n in A030516. a(n)=9 for all n in A189988 and all n in A189987. a(n)=10 for all n in A092759. a(n) = 11 for all n in A179664. a(n)=12 for all n in A179646. - R. J. Mathar, Nov 05 2016, May 20 2017

Extensions

Values corrected. Incorrect comments removed. - R. J. Mathar, Nov 05 2016

A177492 Products of squares of 2 or more distinct primes.

Original entry on oeis.org

36, 100, 196, 225, 441, 484, 676, 900, 1089, 1156, 1225, 1444, 1521, 1764, 2116, 2601, 3025, 3249, 3364, 3844, 4225, 4356, 4761, 4900, 5476, 5929, 6084, 6724, 7225, 7396, 7569, 8281, 8649, 8836, 9025, 10404, 11025, 11236, 12100, 12321, 12996, 13225, 13924
Offset: 1

Views

Author

Keywords

Examples

			36=2^2*3^2, 100=2^2*5*2, 196=2^2*7^2,..900=2^2*3^2*5^2,..
		

Crossrefs

Programs

  • Maple
    q:= n-> not isprime(n) and numtheory[issqrfree](n):
    map(x-> x^2, select(q, [$4..120]))[];  # Alois P. Heinz, Aug 02 2024
  • Mathematica
    f1[n_]:=Length[Last/@FactorInteger[n]]; f2[n_]:=Union[Last/@FactorInteger[n]]; lst={};Do[If[f1[n]>1&&f2[n]=={2},AppendTo[lst,n]],{n,0,8!}];lst
    Reap[Do[{p, e} = Transpose[FactorInteger[n]]; If[Length[p]>1 && Union[e]=={2}, Sow[n]], {n, 13225}]][[2, 1]]
    (* Second program *)
    Select[Range[120], And[CompositeQ[#], SquareFreeQ[#]] &]^2 (* Michael De Vlieger, Aug 17 2023 *)
  • Python
    from math import isqrt
    from sympy import primepi, mobius
    def A177492(n):
        def f(x): return n+1+primepi(x)+x-sum(mobius(k)*(x//k**2) for k in range(1, isqrt(x)+1))
        m, k = n+1, f(n+1)
        while m != k:
            m, k = k, f(k)
        return m**2 # Chai Wah Wu, Aug 02 2024

Formula

a(n) = A120944(n)^2. - R. J. Mathar, Dec 06 2010

Extensions

Definition corrected by R. J. Mathar, Dec 06 2010

A275387 Numbers of ordered pairs of divisors d < e of n such that gcd(d, e) > 1.

Original entry on oeis.org

0, 0, 0, 1, 0, 2, 0, 3, 1, 2, 0, 8, 0, 2, 2, 6, 0, 8, 0, 8, 2, 2, 0, 18, 1, 2, 3, 8, 0, 15, 0, 10, 2, 2, 2, 24, 0, 2, 2, 18, 0, 15, 0, 8, 8, 2, 0, 32, 1, 8, 2, 8, 0, 18, 2, 18, 2, 2, 0, 44, 0, 2, 8, 15, 2, 15, 0, 8, 2, 15, 0, 49, 0, 2, 8, 8, 2, 15, 0, 32, 6, 2
Offset: 1

Views

Author

Michel Lagneau, Aug 03 2016

Keywords

Comments

Number of elements in the set {(x, y): x|n, y|n, x < y, gcd(x, y) > 1}.
Every element of the sequence is repeated indefinitely, for instance:
a(n)=0 if n prime;
a(n)=1 if n = p^2 for p prime (A001248);
a(n)=2 if n is a squarefree semiprime (A006881);
a(n)=3 if n = p^3 for p prime (A030078);
a(n)=6 if n = p^4 for p prime (A030514);
a(n)=8 if n is a number which is the product of a prime and the square of a different prime (A054753);
a(n)=10 if n = p^5 for p prime (A050997);
a(n)=15 if n is in the set {A007304} union {64} = {30, 42, 64, 66, 70,...} = {Sphenic numbers} union {64};
a(n)=18 if n is the product of the cube of a prime (A030078) and a different prime (see A065036);
a(n)=21 if n = p^7 for p prime (A092759);
a(n)=24 if n is square of a squarefree semiprime (A085986);
a(n)=32 if n is the product of the 4th power of a prime (A030514) and a different prime (see A178739);
a(n)=36 if n = p^9 for p prime (A179665);
a(n)=44 if n is the product of exactly four primes, three of which are distinct (A085987);
a(n)=45 if n is a number with 11 divisors (A030629);
a(n)=49 if n is of the form p^2*q^3, where p,q are distinct primes (A143610);
a(n)=50 if n is the product of the 5th power of a prime (A050997) and a different prime (see A178740);
a(n)=55 if n if n = p^11 for p prime(A079395);
a(n)=72 if n is a number with 14 divisors (A030632);
a(n)=80 if n is the product of four distinct primes (A046386);
a(n)=83 if n is a number with 15 divisors (A030633);
a(n)=89 if n is a number with prime factorization pqr^3 (A189975);
a(n)=96 if n is a number that are the cube of a product of two distinct primes (A162142);
a(n)=98 if n is the product of the 7th power of a prime and a distinct prime (p^7*q) (A179664);
a(n)=116 if n is the product of exactly 2 distinct squares of primes and a different prime (p^2*q^2*r) (A179643);
a(n)=126 if n is the product of the 5th power of a prime and different distinct prime of the 2nd power (p^5*q^2) (A179646);
a(n)=128 if n is the product of the 8th power of a prime and a distinct prime (p^8*q) (A179668);
a(n)=150 if n is the product of the 4th power of a prime and 2 different distinct primes (p^4*q*r) (A179644);
a(n)=159 if n is the product of the 4th power of a prime and a distinct prime of power 3 (p^4*q^3) (A179666).
It is possible to continue with a(n) = 162, 178, 209, 224, 227, 238, 239, 260, 289, 309, 320, 333,...

Examples

			a(12) = 8 because the divisors of 12 are {1, 2, 3, 4, 6, 12} and GCD(d_i, d_j)>1 for the 8 following pairs of divisors: (2,4), (2,6), (2,12), (3,6), (3,12), (4,6), (4,12) and (6,12).
		

Crossrefs

Programs

  • Maple
    with(numtheory):nn:=100:
    for n from 1 to nn do:
    x:=divisors(n):n0:=nops(x):it:=0:
    for i from 1 to n0 do:
      for j from i+1 to n0 do:
       if gcd(x[i],x[j])>1
        then
        it:=it+1:
        else
       fi:
      od:
    od:
      printf(`%d, `,it):
    od:
  • Mathematica
    Table[Sum[Sum[(1 - KroneckerDelta[GCD[i, k], 1]) (1 - Ceiling[n/k] + Floor[n/k]) (1 - Ceiling[n/i] + Floor[n/i]), {i, k - 1}], {k, n}], {n, 100}] (* Wesley Ivan Hurt, Jan 01 2021 *)
  • PARI
    a(n)=my(d=divisors(n)); sum(i=2,#d, sum(j=1,i-1, gcd(d[i],d[j])>1)) \\ Charles R Greathouse IV, Aug 03 2016
    
  • PARI
    a(n)=my(f=factor(n)[,2],t=prod(i=1,#f,f[i]+1)); t*(t-1)/2 - (prod(i=1,#f,2*f[i]+1)+1)/2 \\ Charles R Greathouse IV, Aug 03 2016

Formula

a(n) = A066446(n) - A063647(n).
a(n) = Sum_{d1|n, d2|n, d1Wesley Ivan Hurt, Jan 01 2021

A331593 Numbers k that have the same number of distinct prime factors as A225546(k).

Original entry on oeis.org

1, 2, 3, 4, 5, 7, 9, 11, 12, 13, 16, 17, 18, 19, 20, 23, 24, 25, 28, 29, 31, 37, 40, 41, 43, 44, 45, 47, 48, 49, 50, 52, 53, 54, 56, 59, 61, 63, 67, 68, 71, 72, 73, 75, 76, 79, 80, 81, 83, 88, 89, 92, 96, 97, 98, 99, 101, 103, 104, 107, 108, 109, 112, 113, 116, 117, 121, 124, 127, 131, 135, 136, 137, 139, 144, 147, 148, 149
Offset: 1

Views

Author

Antti Karttunen and Peter Munn, Jan 21 2020

Keywords

Comments

Numbers k for which A001221(k) = A331591(k).
Numbers k that have the same number of terms in their factorization into powers of distinct primes as in their factorization into powers of squarefree numbers with distinct exponents that are powers of 2. See A329332 for a description of the relationship between the two factorizations and A225546.
If k is included, then all such x that A046523(x) = k are also included, i.e., all numbers with the same prime signature as k. Notably, primes (A000040) are included, but squarefree semiprimes (A006881) are not.
k^2 is included if and only if k is included, for example A001248 is included, but A085986 is not.

Examples

			There are 2 terms in the factorization of 36 into powers of distinct primes, which is 36 = 2^2 * 3^2 = 4 * 9; but only 1 term in its factorization into powers of squarefree numbers with distinct exponents that are powers of 2, which is 36 = 6^(2^1). So 36 is not included.
There are 2 terms in the factorization of 40 into powers of distinct primes, which is 40 = 2^3 * 5^1 = 8 * 5; and also 2 terms in its factorization into powers of squarefree numbers with distinct exponents that are powers of 2, which is 40 = 10^(2^0) * 2^(2^1) = 10 * 4. So 40 is included.
		

Crossrefs

Sequences with related definitions: A001221, A331591, A331592.
Subsequences of complement: A006881, A056824, A085986, A120944, A177492.

Programs

  • Mathematica
    Select[Range@ 150, Equal @@ PrimeNu@ {#, If[# == 1, 1, Apply[Times, Flatten@ Map[Function[{p, e}, Map[Prime[Log2@ # + 1]^(2^(PrimePi@ p - 1)) &, DeleteCases[NumberExpand[e, 2], 0]]] @@ # &, FactorInteger[#]]]]} &] (* Michael De Vlieger, Jan 26 2020 *)
  • PARI
    A331591(n) = if(1==n,0,my(f=factor(n),u=#binary(vecmax(f[, 2])),xs=vector(u),m=1,e); for(i=1,u,for(k=1,#f~, if(bitand(f[k,2],m),xs[i]++)); m<<=1); #select(x -> (x>0),xs));
    k=0; n=0; while(k<105, n++; if(omega(n)==A331591(n), k++; print1(n,", ")));

Formula

{a(n)} = {k : A001221(k) = A000120(A267116(k))}.

A162144 Products of cubes of 3 distinct primes.

Original entry on oeis.org

27000, 74088, 287496, 343000, 474552, 1061208, 1157625, 1331000, 1481544, 2197000, 2628072, 3652264, 4492125, 4913000, 5268024, 6028568, 6434856, 6859000, 7414875, 10941048, 12167000, 12326391, 13481272, 14886936, 16581375, 17173512, 18821096
Offset: 1

Views

Author

Keywords

Comments

Numbers of the form p^3*q^3*r^3 where p, q, r are three distinct primes.
The cubic analog of A085986 (squares of 2 distinct primes).

Examples

			27000 = 2^3*3^3*5^3. 74088 = 2^3*3^3*7^3. 287496 = 2^3*3^3*11^3.
		

Crossrefs

Programs

  • Mathematica
    fQ[n_]:=Last/@FactorInteger[n]=={1,1,1}; Select[Range[1000], fQ]^3
  • Python
    from math import isqrt
    from sympy import primepi, primerange, integer_nthroot
    def A162144(n):
        def f(x): return int(n+x-sum(primepi(x//(k*m))-b for a,k in enumerate(primerange(integer_nthroot(x,3)[0]+1),1) for b,m in enumerate(primerange(k+1,isqrt(x//k)+1),a+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
        return bisection(f)**3 # Chai Wah Wu, Aug 30 2024

Formula

a(n) = (A007304(n))^3.
A000005(a(n)) = 64.
Sum_{n>=1} 1/a(n) = (P(3)^3 + 2*P(9) - 3*P(3)*P(6))/6 = (A085541^3 + 2*A085969 - 3*A085541*A085966)/6 = 0.0000661486..., where P is the prime zeta function. - Amiram Eldar, Oct 30 2020

Extensions

Edited by R. J. Mathar, Aug 14 2009
Showing 1-10 of 13 results. Next