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.

Previous Showing 11-15 of 15 results.

A355190 Factorial splitting: write n! = x*y*z with x <= y <= z and minimal z-x; sequence gives value of y.

Original entry on oeis.org

1, 1, 1, 2, 3, 5, 9, 18, 35, 72, 160, 350, 770, 1848, 4455, 10920, 27648, 70720, 185895, 496125, 1344000, 3706560, 10395840, 29568000, 85299200, 249356800, 738840960, 2216522880, 6730407936, 20678434920, 64253314125, 201847852800, 640813814784, 2055410286592, 6658705461408, 21780889600000
Offset: 0

Views

Author

Max Alekseyev, Jun 23 2022

Keywords

Crossrefs

A355191 Factorial splitting: write n! = x*y*z with x <= y <= z and minimal z-x; sequence gives value of z.

Original entry on oeis.org

1, 1, 2, 3, 4, 6, 10, 20, 36, 72, 162, 352, 810, 1872, 4480, 11088, 27720, 71280, 186368, 496128, 1347192, 3720960, 10407936, 29576988, 85322160, 249500160, 738904320, 2216712960, 6732000000, 20680540160, 64257392640, 201852518400, 640832000000, 2055425699250, 6658777165824, 21781337550336
Offset: 0

Views

Author

Max Alekseyev, Jun 23 2022

Keywords

Comments

Apparently we have x < y < z for all n > 9. If so, using strict inequalities x < y < z in the definition would make the sequence undefined for n < 3 and affect only a(9) by switching from 9! = 70*72*72 to 9! = 63*72*80.

Crossrefs

A355192 Factorial splitting: write n! = x*y*z with x <= y <= z and minimal z-x; sequence gives value of z-x.

Original entry on oeis.org

0, 0, 1, 2, 2, 2, 2, 6, 4, 2, 22, 28, 42, 72, 112, 288, 420, 720, 1568, 1920, 3512, 16560, 19686, 16028, 71280, 182160, 184320, 552960, 2925648, 4885160, 12080640, 32861900, 71559680, 77631750, 217165824, 604653336, 368858880, 4069377144, 7919402400, 17537715360, 87352688640, 127718553600
Offset: 0

Views

Author

Max Alekseyev, Jun 23 2022

Keywords

Comments

a(n) <= A061033(n).
n=61 gives the smallest example where the value of x is not maximal (cf. A061030) and the value of z is not minimal.
Apparently we have x < y < z for all n > 9. If so, using strict inequalities x < y < z in the definition would make the sequence undefined for n < 3 and affect only a(9) by switching from 9! = 70*72*72 to 9! = 63*72*80.

Crossrefs

A260079 The smallest product of n distinct primes no larger than the (2n)-th to exceed the square root of the (2n)-th primorial.

Original entry on oeis.org

3, 15, 182, 3135, 81345, 2733549, 114535239, 5708795638, 342503171205, 23622238184727, 1793796113720611, 154171427826650234, 15259854588449248245, 1601991507050573600715, 177792170427340904920562, 22932432920285320919637458, 3164592660873444717893657954, 474678349195034622662784926530
Offset: 1

Views

Author

James G. Merickel, Jul 15 2015

Keywords

Comments

This is similar to but distinct from the even-indexed terms of A060796, with a(n) differing from A060796(2n) at n=7, 10, 11, 12, 13 and 16 (with A060796(36) unavailable for comparison). A260075 is the analog by splitting the first 3n primes into 3 equal-sized sets (but not by giving the smallest product larger than the cube root of the corresponding primorial). The percentages by which a(n) exceeds the square root of the (2n)-th primorial are 22.5, 3.51, 5.03, 0.660, 1.13, 0.347, 0.136, 1.82*10^(-3), 8.54*10^(-3), 6.21*10^(-3), 9.28*10^(-4), 1.84*10^(-4), 1.71*10^(-4), 1.31*10^(-5), 1.94*10^(-6), 5.62*10^(-8), 2.93*10^(-7) and 4.50*10^(-8).
The below PARI program functions by checking for each set of n primes through the (2n-1)-st whether either its product or its product's cofactor in the (2n)-th primorial gives an improvement.

Examples

			If the primes 2 through 13 are split into equal-sized sets, the larger product of the two is not less than 182. This is the value for {2, 7, 13}, so a(3)=182.
		

Crossrefs

Programs

  • PARI
    {
    p=vector(50,n,prime(n));i=1;
    while(1,
      P=prod(j=1,2*i,p[j]);Q=sqrt(P);r=10^1000;
      m=prod(j=1,i,p[j]);a=vectorsmall(2*i-1);
      for(j=1,i,a[j]=1);b=vectorsmall(2*i-1);
      for(j=i,2*i-1,b[j]=1);while(1,
        if(m>Q,if(m
    				

A277428 a(n) = the n-bit number in which the i-th bit is 1 if and only if prime(i) divides A060795(n).

Original entry on oeis.org

0, 1, 4, 9, 11, 22, 75, 105, 449, 425, 1426, 2837, 4765, 2775, 21895, 57558, 87602, 145177, 123788, 694479, 677326, 1516496, 3363284, 2048443, 26968428, 24488513, 98733728
Offset: 1

Views

Author

Luc Rousseau, Oct 14 2016

Keywords

Comments

a(n) is also the n-bit number in which the i-th bit is 1 if and only if prime(i) does not divide A060796(n).
a(n) is also the encoding of the fraction defined as follows:
Consider the set of fractions that can be built by only using each prime number from prime(1) to prime(n) exactly once as factors, either in the numerator or in the numerator. There are 2^n such fractions. One of them, let's call it x, has the property of yielding the result nearest to 1. a(n) is the n-bit number in which the i-th bit is 1 if prime(i) appears in the numerator of x, 0 if prime(i) appears in the denominator of x.
Remark: x is A060795(n) / A060796(n). Notice how in this prime-rank-to-bit representation, A060795(n) and A060796(n) are each other's bitwise negation.

Examples

			For n = 1, two distinct fractions can be written with the first prime number, namely 1/2 and 2. Of the two, 1/2 is nearer to 1. 1/2 has its 2 below the fraction bar, so its binary encoding is 0, which yields a(1) = 0.
For n = 2, four distinct fractions can be written with the first two prime numbers, namely 1/6, 2/3, 3/2 and 6. 2/3 is the nearest to 1. 2/3 has its 2 above the fraction bar and its 3 below, so its encoding is 01, which yields a(2) = 1.
		

Crossrefs

Encodes A060795 and A060796. Cf. A002110, A261144.

Programs

  • Java
    package oeis;
    public class BinaryEncodedBestPrimeSetup {
      // Brute force implementation... Can it be improved?
    public static int PRIME[] = { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, /* to be continued */ };
    public static void main(String args[]) {
      int nMax = PRIME.length; // number of terms of the sequence
      for (int n = 1; n <= nMax; n ++) {
       if (n > 1) {
        System.out.print(", ");
       }
       System.out.print(u(n));
      }
    }
    private static int u(int n) {
      double bestMul = 0.0;
      int bestSetup = -1;
      int s = 0; // binary-encoded setup number
      for (s = 0; s < (1 << n); s ++) {
       double mul = 1.0;
       int i = 0; // prime number #
       for (i = 0; i < n; i ++) {
        if ((s & (1 << i)) != 0) {
         mul *= PRIME[i]; // 1 = above fraction bar
        } else {
         mul /= PRIME[i]; // 0 = below fraction bar
        }
       }
       if (mul < 1.0) {
        if (mul > bestMul) {
         bestMul = mul;
         bestSetup = s;
        }
       }
      }
      return bestSetup;
    }
    }
    
  • Mathematica
    {0}~Join~Table[Function[p, FromDigits[#, 2] &@ Reverse@ MapAt[# + 1 &, ConstantArray[0, n], Partition[#, 1, 1]] &@ PrimePi@ FactorInteger[Numerator@ #][[All, 1]] &@ Max@ Select[Map[p/#^2 &, Divisors@ p], # < 1 &]][Times @@ Prime@ Range@ n], {n, 2, 23}] (* Michael De Vlieger, Oct 19 2016 *)
  • PARI
    a060795(n) = my(m=prod(i=1, n, prime(i))); divisors(m)[numdiv(m)\2];
    a(n) = {my(a95 = a060795(n)); v = vector(n, i, (a95 % prime(i))==0); subst(Polrev(v), x, 2); } \\ Michel Marcus, Dec 03 2016

Extensions

a(22)-a(27) from Michael De Vlieger, Oct 19 2016
Previous Showing 11-15 of 15 results.