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

A276085 Primorial base log-function: fully additive with a(p) = p#/p, where p# = A034386(p).

Original entry on oeis.org

0, 1, 2, 2, 6, 3, 30, 3, 4, 7, 210, 4, 2310, 31, 8, 4, 30030, 5, 510510, 8, 32, 211, 9699690, 5, 12, 2311, 6, 32, 223092870, 9, 6469693230, 5, 212, 30031, 36, 6, 200560490130, 510511, 2312, 9, 7420738134810, 33, 304250263527210, 212, 10, 9699691, 13082761331670030, 6, 60, 13, 30032, 2312, 614889782588491410, 7, 216, 33, 510512, 223092871, 32589158477190044730, 10
Offset: 1

Views

Author

Antti Karttunen, Aug 21 2016

Keywords

Comments

Completely additive with a(p^e) = e * A002110(A000720(p)-1).
This is a left inverse of A276086 ("primorial base exp-function"), hence the name "primorial base log-function". When the domain is restricted to the terms of A048103, this works also as a right inverse, as A276086(a(A048103(n))) = A048103(n) for all n >= 1. - Antti Karttunen, Apr 24 2022
On average, every third term is a multiple of 4. See A369001. - Antti Karttunen, May 26 2024

Crossrefs

A left inverse of A276086.
Positions of multiples of k in this sequence, for k=2, 3, 4, 5, 8, 27, 3125: A003159, A339746, A369002, A373140, A373138, A377872, A377878.
Cf. A036554 (positions of odd terms), A035263, A096268 (parity of terms).
Cf. A372575 (rgs-transform), A372576 [a(n) mod 360], A373842 [= A003415(a(n))].
Cf. A373145 [= gcd(A003415(n), a(n))], A373361 [= gcd(n, a(n))], A373362 [= gcd(A001414(n), a(n))], A373485 [= gcd(A083345(n), a(n))], A373835 [= gcd(bigomega(n), a(n))], and also A373367 and A373147 [= A003415(n) mod a(n)], A373148 [= a(n) mod A003415(n)].
Other completely additive sequences with primes p mapped to a function of p include: A001222 (with a(p)=1), A001414 (with a(p)=p), A059975 (with a(p)=p-1), A341885 (with a(p)=p*(p+1)/2), A373149 (with a(p)=prevprime(p)), A373158 (with a(p)=p#).
Cf. also A276075 for factorial base and A048675, A054841 for base-2 and base-10 analogs.

Programs

  • Mathematica
    nn = 60; b = MixedRadix[Reverse@ Prime@ Range@ PrimePi[nn + 1]]; Table[FromDigits[#, b] &@ Reverse@ If[n == 1, {0}, Function[k, ReplacePart[Table[0, {PrimePi[k[[-1, 1]]]}], #] &@ Map[PrimePi@ First@ # -> Last@ # &, k]]@ FactorInteger@ n], {n, nn}] (* Version 10.2, or *)
    f[w_List] := Total[Times @@@ Transpose@ {Map[Times @@ # &, Prime@ Range@ Range[0, Length@ w - 1]], Reverse@ w}]; Table[f@ Reverse@ If[n == 1, {0}, Function[k, ReplacePart[Table[0, {PrimePi[k[[-1, 1]]]}], #] &@ Map[PrimePi@ First@ # -> Last@ # &, k]]@ FactorInteger@ n], {n, 60}] (* Michael De Vlieger, Aug 30 2016 *)
  • PARI
    A276085(n) = { my(f = factor(n), pr=1, i=1, s=0); for(k=1, #f~, while(i <= primepi(f[k, 1])-1, pr *= prime(i); i++); s += f[k, 2]*pr); (s); }; \\ Antti Karttunen, Nov 11 2024
    
  • Python
    from sympy import primorial, primepi, factorint
    def a002110(n):
        return 1 if n<1 else primorial(n)
    def a(n):
        f=factorint(n)
        return sum(f[i]*a002110(primepi(i) - 1) for i in f)
    print([a(n) for n in range(1, 101)]) # Indranil Ghosh, Jun 22 2017

Formula

a(1) = 0; for n > 1, a(n) = a(A028234(n)) + (A067029(n) * A002110(A055396(n)-1)).
a(1) = 0, a(n) = (e1*A002110(i1-1) + ... + ez*A002110(iz-1)) when n = prime(i1)^e1 * ... * prime(iz)^ez.
Other identities.
For all n >= 0:
a(A276086(n)) = n.
a(A000040(1+n)) = A002110(n).
a(A002110(1+n)) = A143293(n).
From Antti Karttunen, Apr 24 & Apr 29 2022: (Start)
a(A283477(n)) = A283985(n).
a(A108951(n)) = A346105(n). [The latter has a similar additive formula as this sequence, but instead of primorials, uses their partial sums]
When applied to sequences where a certain subset of the divisors of n has been multiplicatively encoded with the help of A276086, this yields a corresponding number-theoretical sequence, i.e. completes their computation:
a(A319708(n)) = A001065(n) and a(A353564(n)) = A051953(n).
a(A329350(n)) = A069359(n) and a(A329380(n)) = A323599(n).
In the following group, the sum of the rhs-sequences is n [on each row, as say, A328841(n)+A328842(n)=n], because the pointwise product of the corresponding lhs-sequences is A276086:
a(A053669(n)) = A053589(n) and a(A324895(n)) = A276151(n).
a(A328571(n)) = A328841(n) and a(A328572(n)) = A328842(n).
a(A351231(n)) = A351233(n) and a(A327858(n)) = A351234(n).
a(A351251(n)) = A351253(n) and a(A324198(n)) = A351254(n).
The sum or difference of the rhs-sequences is A108951:
a(A344592(n)) = A346092(n) and a(A346091(n)) = A346093(n).
a(A346106(n)) = A346108(n) and a(A346107(n)) = A346109(n).
Here the two sequences are inverse permutations of each other:
a(A328624(n)) = A328625(n) and a(A328627(n)) = A328626(n).
a(A346102(n)) = A328622(n) and a(A346233(n)) = A328623(n).
a(A346101(n)) = A289234(n). [Self-inverse]
Other correspondences:
a(A324350(x,y)) = A324351(x,y).
a(A003961(A276086(n))) = A276154(n). [The primorial base left shift]
a(A276076(n)) = A351576(n). [Sequence reinterpreting factorial base representation as a primorial base representation]
(End)

Extensions

Name amended by Antti Karttunen, Apr 24 2022
Name simplified, the old name moved to the comments - Antti Karttunen, Jun 23 2024

A339746 Positive integers of the form 2^i*3^j*k, gcd(k,6)=1, and i == j (mod 3).

Original entry on oeis.org

1, 5, 6, 7, 8, 11, 13, 17, 19, 23, 25, 27, 29, 30, 31, 35, 36, 37, 40, 41, 42, 43, 47, 48, 49, 53, 55, 56, 59, 61, 64, 65, 66, 67, 71, 73, 77, 78, 79, 83, 85, 88, 89, 91, 95, 97, 101, 102, 103, 104, 107, 109, 113, 114, 115, 119, 121, 125, 127, 131, 133, 135
Offset: 1

Views

Author

Griffin N. Macris, Dec 15 2020

Keywords

Comments

From Peter Munn, Mar 16 2021: (Start)
The positive integers in the multiplicative subgroup of the positive rationals generated by 8, 6, and A215848 (primes greater than 3).
This subgroup, denoted H, has two cosets: 2H = (1/3)H and 3H = (1/2)H. It follows that the sequence is one part of a 3-part partition of the positive integers with the property that each part's terms are half the even terms of one of the other parts and also one third of the multiples of 3 in the remaining part.
(End)
Positions of multiples of 3 in A276085 (and in A276075). Because A276085 is completely additive, this is closed under multiplication: if m and n are in the sequence then so is m*n. - Antti Karttunen, May 27 2024
The coset sequences mentioned in Peter Munn's comment above are A373261 and A373262. - Antti Karttunen, Jun 04 2024

Crossrefs

Sequences of positive integers in a multiplicative subgroup of positive rationals generated by a set S and A215848: S={}: A007310, S={6}: A064615, S={3,4}: A003159, S={2,9}: A007417, S={4,6}: A036668, S={3,8}: A191257, S={4,9}: A339690, S={6,8}: this sequence.
Positions of 0's in A373153, positions of multiples of 3 in A276085 and in A372576.
Cf. A372573 (characteristic function), A373261, A373262.
Sequences giving positions of multiples of k in A276085, for k=2, 3, 4, 5, 8, 27, 3125: A003159, this sequence, A369002, A373140, A373138, A377872, A377878.
Cf. also A332820, A373992, A383288.

Programs

  • Maple
    N:= 1000: # for terms <= N
    R:= {}:
    for k1 from 0 to floor(N/6) do
      for k0 in [1,5] do
        k:= k0 + 6*k1;
        for j from 0 while 3^j*k <= N do
          for i from (j mod 3) by 3 do
            x:= 2^i * 3^j * k;
            if x > N then break fi;
            R:= R union {x}
    od od od od:
    sort(convert(R,list)); # Robert Israel, Apr 08 2021
  • Mathematica
    Select[Range[130], Mod[IntegerExponent[#, 2] - IntegerExponent[#, 3], 3] == 0 &]
  • PARI
    isA339746 = A372573; \\ Antti Karttunen, Jun 04 2024
    
  • Python
    from sympy import factorint
    def ok(n):
      f = factorint(n, limit=4)
      i, j = 0 if 2 not in f else f[2], 0 if 3 not in f else f[3]
      return (i-j)%3 == 0
    def aupto(limit): return [m for m in range(1, limit+1) if ok(m)]
    print(aupto(200)) # Michael S. Branicky, Mar 26 2021
    
  • Python
    from itertools import count
    def A339746(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):
            c = n+x
            for i in range(x.bit_length()+1):
                i2 = 1<x:
                        break
                    m = x//k
                    c -= (m-1)//6+(m-5)//6+2
            return c
        return bisection(f,n,n) # Chai Wah Wu, Feb 12 2025

Formula

a(n) ~ (91/43)*n.

A377869 Numbers k such that A276085(k) has no divisors of the form p^p, where A276085 is fully additive with a(p) = p#/p.

Original entry on oeis.org

2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 17, 18, 19, 22, 23, 24, 26, 27, 29, 30, 31, 32, 34, 36, 37, 38, 40, 41, 42, 43, 45, 46, 47, 48, 50, 53, 54, 56, 58, 59, 60, 61, 62, 63, 64, 66, 67, 70, 71, 72, 73, 74, 75, 78, 79, 80, 82, 83, 84, 86, 88, 89, 90, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 109
Offset: 1

Author

Antti Karttunen, Nov 10 2024

Keywords

Comments

Numbers k for which A276085(k) is in A048103, i.e., in the range of A276086.
Numbers k such that A276086(A276085(A276085(k))) is equal to A276085(k).
This is a subsequence of A369003 (numbers k for which A276085(k) is not a multiple of 4), from which it differs for the first time at n=122, where a(122) = 175, as A369003(122) = 174 is not included in this sequence.
From Antti Karttunen, Nov 17 2024: (Start)
More generally, this is equal to setwise difference A000027 \ (A369002 U A377872 U A377878 U ...).
Even semiprimes (A100484) is a subsequence, but the odd semiprimes (A046315) are all in the complement (A377873), because they are included in A369002.
For k=1..6, there are 8, 70, 656, 6531, 64773, 645301 terms <= 10^k. Question: What is the asymptotic density of this sequence, if it has one?
(End)

Examples

			A276085(11) = 210 = 2*3*5*7, which has no divisor of the form p^p, therefore 11 is included in this sequence.
A276085(15) = 8 = 2^2 * 2, which has a divisor of the form p^p, therefore 15 is NOT included in this sequence.
A276085(25) = 12 = 2^2 * 3, which has a divisor of the form p^p, therefore 25 is NOT included.
A276085(34) = 30031 = A002110(1-1)+A002110(7-1) (as 34 = 2*17 = prime(1)*prime(7)), and because 30031 = 59*509 (an odd semiprime), 34 is included.
A276085(60) = 10 = 2*5, which has no divisors of the form p^p, therefore 60 is included.
A276085(102) = 30033 = 3^2 * 47 * 71, which has no p^p divisors, therefore 102 is included.
A276085(174) = 223092873 = 3^3 * 3 * 1063 * 2591, which thus has a divisor of the form p^p, and therefore 174 is NOT included in this sequence.
		

Crossrefs

Cf. A046315, A048103, A276085, A276086, A377868 (characteristic function), A377873 (complement).
Setwise difference A369003 \ A377875.
Cf. A000040, A100484, A377871, A377989 (subsequences).

Programs

A377872 Numbers k for which A276085(k) is a multiple of 27, where A276085 is fully additive with a(p) = p#/p.

Original entry on oeis.org

1, 55, 95, 115, 155, 174, 187, 203, 232, 265, 282, 297, 323, 325, 329, 335, 376, 391, 396, 438, 462, 474, 511, 513, 515, 527, 528, 539, 553, 584, 606, 616, 621, 632, 649, 654, 678, 684, 704, 707, 745, 763, 791, 798, 808, 828, 837, 872, 901, 904, 906, 912, 913, 931, 966, 978, 1002, 1057, 1064, 1073, 1074, 1075, 1104, 1105
Offset: 1

Author

Antti Karttunen, Nov 10 2024

Keywords

Comments

A multiplicative semigroup; if m and n are in the sequence then so is m*n.
From Antti Karttunen, Nov 17 2024: (Start)
Question: What is the asymptotic density of this sequence? There are 1, 3, 56, 484, 4899, 50034, 508254 terms <= 10^k, for k=1..7. See also questions in A377869 and in A377878.
If 3*x is a term, then 4*x is also a term, and vice versa.
Contains no even semiprimes (A100484), semiprimes of the form 3*prime (A001748), nor terms of the form 4*prime (A001749).
(End)

Crossrefs

Subsequence of A339746, and of A377873.
Cf. also A369007, A377875.

Programs

  • PARI
    isA377872(n) = { my(m=27, f = factor(n), pr=1, i=1, s=0); for(k=1, #f~, while(i <= primepi(f[k, 1])-1, pr *= Mod(prime(i),m); i++); s += f[k, 2]*pr); (0==lift(s)); };

Formula

{k such that Sum e*A377876(A000720(p)-1) == 0 (mod 27), when k = Product(p^e)}.
Showing 1-4 of 4 results.