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

A046316 Numbers of the form p*q*r where p,q,r are (not necessarily distinct) odd primes.

Original entry on oeis.org

27, 45, 63, 75, 99, 105, 117, 125, 147, 153, 165, 171, 175, 195, 207, 231, 245, 255, 261, 273, 275, 279, 285, 325, 333, 343, 345, 357, 363, 369, 385, 387, 399, 423, 425, 429, 435, 455, 465, 475, 477, 483, 507, 531, 539, 549, 555, 561, 575, 595, 603, 605
Offset: 1

Views

Author

Patrick De Geest, Jun 15 1998

Keywords

Crossrefs

A369979 sorted into ascending order.
Subsequence of A014612 and of A046340.
Cf. A255646 (final digits), A369054, A369058 (characteristic function), A369252 [= A003415(a(n))].

Programs

  • Haskell
    a046316 n = a046316_list !! (n-1)
    a046316_list = filter ((== 3) . a001222) [1, 3 ..]
    -- Reinhard Zumkeller, May 05 2015
    
  • PARI
    list(lim)=my(v=List(),pq); forprime(p=3,lim\9, forprime(q=3,min(lim\3\p,p), pq=p*q; forprime(r=3,lim\pq, listput(v, pq*r)))); Set(v) \\ Charles R Greathouse IV, Aug 23 2017
    
  • Python
    from math import isqrt
    from sympy import primepi, primerange, integer_nthroot
    def A046316(n):
        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): return int(n+x-sum(primepi(x//(k*m))-b+1 for a,k in enumerate(primerange(3,integer_nthroot(x,3)[0]+1),2) for b,m in enumerate(primerange(k,isqrt(x//k)+1),a)))
        return bisection(f,n,n) # Chai Wah Wu, Oct 18 2024

Extensions

Definition clarified by N. J. A. Sloane, Dec 19 2017

A373848 Numbers k such that k is not divisible by p^p for any prime p, and for which 1 < A373842(k) <= k, where A373842 is the arithmetic derivative of the primorial base log-function.

Original entry on oeis.org

5, 9, 15, 25, 30, 42, 45, 63, 75, 105, 110, 125, 126, 147, 150, 165, 175, 198, 210, 225, 231, 245, 275, 294, 315, 330, 343, 363, 375, 385, 441, 462, 495, 525, 539, 605, 625, 650, 686, 693, 726, 735, 750, 770, 825, 847, 875, 882, 990, 1029, 1050, 1089, 1125, 1155, 1170, 1190, 1210, 1225, 1250, 1331, 1375, 1386, 1430
Offset: 1

Views

Author

Antti Karttunen, Jun 20 2024

Keywords

Comments

The initial 5 is the only prime in this sequence (for a proof, consider Henry Bottomley's Sep 27 2006 formula for A024451), the next three terms 9, 15, 25 are only semiprimes (see A087112 and A370129), and there are 21 terms with three prime factors in total: 30, 42, 45, 63, 75, 105, 110, 125, 147, 165, 175, 231, 245, 275, 343, 363, 385, 539, 605, 847, 1331 (see A369979, A370138 and A373844). In general, there should be only a finite amount of terms x such that A001222(x) = k, for any k >= 1.
It is conjectured that 5 is the only fixed point of A373842, which would imply that x=6 is the only number for which A003415(x) = A276086(x). See A351228.

Crossrefs

Intersection of A048103 with the setwise difference A373847\(A373846 U {1, 2}).
Subsequence of A373847.
Cf. also A351228, A373603.

Programs

  • PARI
    \\ Uses the code from A373842, or its precomputed data:
    A359550(n) = { my(f = factor(n)); prod(k=1, #f~, (f[k, 2]A373848(n) = if(!A359550(n), 0, my(u=A373842(n)); ((1
    				
  • PARI
    A002620(n) = ((n^2)>>2);
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A276085(n) = { my(f = factor(n)); sum(k=1, #f~, f[k, 2]*prod(i=1,primepi(f[k, 1]-1),prime(i))); };
    \\ The following routine checks that n is not a prime larger than five, is in A048103, and in case n is odd, rules out cases that certainly cannot give A373842(n) <= n:
    prefilter_for_A373848(n) = if(n < 3 || (isprime(n) && n > 5), 0, my(f=factor(n), k=#f~, lpf=f[1,1], p=f[k,1], m=f[k,2]); for(i=1, k, if(f[i, 2]>=f[i, 1], return(0))); if(2==lpf, return(1)); while(p>lpf, p = precprime(p-1); m *= p; if(m>n, return(0))); (1));
    isA373848(n) = if(!prefilter_for_A373848(n), 0, my(x=A276085(n)); if(x>A002620(n), 0, (!isprime(x) && A003415(x)<=n)));

A370138 Arithmetic derivatives of the sums of three primorials > 1.

Original entry on oeis.org

5, 7, 9, 21, 19, 21, 41, 33, 61, 123, 109, 111, 191, 165, 211, 459, 213, 361, 705, 951, 1361, 1319, 3537, 1173, 2195, 2479, 1481, 2111, 3295, 3421, 2313, 5415, 5885, 5891, 11091, 15019, 16371, 35067, 15033, 25061, 33373, 15123, 26057, 31309, 42955, 16691, 48573, 36329, 45845, 62385, 31167, 72201, 62123, 80969, 141399, 151113
Offset: 1

Views

Author

Antti Karttunen, Mar 09 2024

Keywords

Comments

For n > 20, a(n) > A369979(n).

Crossrefs

Programs

  • PARI
    up_to = 15180;
    A002110(n) = prod(i=1,n,prime(i));
    A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
    A370137list(up_to) = { my(v = vector(up_to), i=0); for(x=1,oo, for(y=1,x, for(z=1,y, i++; if(i > up_to, return(v)); v[i] = A002110(x)+A002110(y)+A002110(z)))); (v); };
    v370137 = A370137list(up_to);
    A370137(n) = v370137[n];
    A370138(n) = A003415(A370137(n));

Formula

a(n) = A003415(A370137(n)).

A370137 Sums of three primorials > 1.

Original entry on oeis.org

6, 10, 14, 18, 34, 38, 42, 62, 66, 90, 214, 218, 222, 242, 246, 270, 422, 426, 450, 630, 2314, 2318, 2322, 2342, 2346, 2370, 2522, 2526, 2550, 2730, 4622, 4626, 4650, 4830, 6930, 30034, 30038, 30042, 30062, 30066, 30090, 30242, 30246, 30270, 30450, 32342, 32346, 32370, 32550, 34650, 60062, 60066, 60090, 60270, 62370, 90090
Offset: 1

Views

Author

Antti Karttunen, Mar 09 2024

Keywords

Examples

			6 = A002110(1) + A002110(1) + A002110(1) = 2+2+2.
10 = A002110(2) + A002110(1) + A002110(1) = 6+2+2.
14 = A002110(2) + A002110(2) + A002110(1) = 6+6+2.
18 = A002110(2) + A002110(2) + A002110(2) = 6+6+6.
38 = A002110(3) + A002110(2) + A002110(1) = 30+6+2.
		

Crossrefs

Subsequence of A370133.
Cf. also A370134.

Programs

  • Mathematica
    nn = 6; MapIndexed[Set[P[First[#2] - 1], #1] &, FoldList[Times, 1, Prime@ Range[nn]]]; Table[P[i] + P[j] + P[k], {i, nn}, {j, i}, {k, j}] // Flatten (* Michael De Vlieger, Mar 09 2024 *)
  • PARI
    up_to = 15180;
    A002110(n) = prod(i=1,n,prime(i));
    A370137list(up_to) = { my(v = vector(up_to), i=0); for(x=1,oo, for(y=1,x, for(z=1,y, i++; if(i > up_to, return(v)); v[i] = A002110(x)+A002110(y)+A002110(z)))); (v); };
    v370137 = A370137list(up_to);
    A370137(n) = v370137[n];

Formula

For n > 1, A276150(a(n)) = 3.
For n > 1, A276086(a(n)) = A369979(n).

A373844 Triangle read by rows: T(n,k) = A276086(1 + A002110(n) + A002110(k)), 1 <= k <= n, where A276086 is the primorial base exp-function.

Original entry on oeis.org

18, 30, 50, 42, 70, 98, 66, 110, 154, 242, 78, 130, 182, 286, 338, 102, 170, 238, 374, 442, 578, 114, 190, 266, 418, 494, 646, 722, 138, 230, 322, 506, 598, 782, 874, 1058, 174, 290, 406, 638, 754, 986, 1102, 1334, 1682, 186, 310, 434, 682, 806, 1054, 1178, 1426, 1798, 1922, 222, 370, 518, 814, 962, 1258, 1406, 1702, 2146, 2294, 2738
Offset: 1

Views

Author

Antti Karttunen, Jun 21 2024

Keywords

Comments

Triangle giving all products of three primes, of which one is even (2) and two are odd (not necessarily distinct), so that the product is of the form 4m+2.
The only terms such that T(n, k) > A373845(n, k) > 1 are 30, 42, 110 at positions T(2,1), T(3,1), T(4,2), and the corresponding terms in A373845 are 6, 14, 38.

Examples

			Triangle begins as:
   18,
   30,  50,
   42,  70,  98,
   66, 110, 154, 242,
   78, 130, 182, 286, 338,
  102, 170, 238, 374, 442,  578,
  114, 190, 266, 418, 494,  646,  722,
  138, 230, 322, 506, 598,  782,  874, 1058,
  174, 290, 406, 638, 754,  986, 1102, 1334, 1682,
  186, 310, 434, 682, 806, 1054, 1178, 1426, 1798, 1922,
  222, 370, 518, 814, 962, 1258, 1406, 1702, 2146, 2294, 2738,
etc.
		

Crossrefs

Programs

  • PARI
    A002110(n) = prod(i=1,n,prime(i));
    A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
    A373844(n) = { n--; my(c = (sqrtint(8*n + 1) - 1) \ 2, x=A002110(1+n - binomial(c + 1, 2))); A276086(1+(A002110(1+c)+x)); };

Formula

For n, k >= 1, T(n, k) = A276086(1+A370121(n, k)).
For n, k >= 1, T(n, k) = 2*A087112(n+1, k+1).
Showing 1-5 of 5 results.