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.

A090318 a(n) = least positive k such that k, k+1, k+2, ..., k+n-1 is a stapled interval of length n, or 0 if no such sequence exists.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2184, 27829, 27828, 87890, 87890, 171054, 171054, 323510, 127374, 323510, 151062, 151062, 151062, 151061, 151060, 151059, 151058, 7106718, 7106718, 7567747, 7567746, 7567745, 7567744, 7567743, 7567742, 48595315, 48595314, 48595313
Offset: 1

Views

Author

William Rex Marshall, Jan 25 2004

Keywords

Comments

A finite sequence of n consecutive positive integers is called "stapled" if each term in the sequence is not relatively prime to at least one other term in the sequence. Thus a staple joins two terms of the sequence whose gcd is > 1.
It has been proved that stapled intervals of length n >= 17 exist for all n.
From Max Alekseyev, Jul 24 2007: (Start)
An interval is stapled if for every term x there is another term y (different from x) such that gcd(x,y) > 1.
The shortest stapled interval has length 17 and starts with the number 2184.
It is interesting to notice that the intervals [27829,27846] and [27828,27846] are stapled while the interval [27828,27845] is not.
It is clear that a stapled interval [a,b] may not contain a prime number greater than b/2 (as such a prime would be coprime to every other element of the interval).
Together with Bertrand's Postulate this implies a > b/2 or b < 2a. And it follows that
* a stapled interval may not contain prime numbers at all;
* we can determine whether any particular positive integer a is a starting point of some stapled interval. (End)
For n >= 17, a(n) < A034386(n-1) = (n-1)#. - Max Alekseyev, Oct 08 2007

Examples

			The shortest possible stapled sequence is [2184, 2185, 2186, 2187, 2188, 2189, 2190, 2191, 2192, 2193, 2194, 2195, 2196, 2197, 2198, 2199, 2200].
		

References

  • I. Gassko, Common factor graphs of stapled sequences, Proceedings of the Twenty-eighth Southeastern International Conference on Combinatorics, Graph Theory and Computing (Boca Raton, FL, 1997). Congr. Numer. 126 (1997), 163-173.
  • I. Gassko, Stapling and composite coverings of natural numbers, Proceedings of the Twenty-seventh Southeastern International Conference on Combinatorics, Graph Theory and Computing (Baton Rouge, LA, 1996). Congr. Numer. 118 (1996), 109-116.
  • H. L. Nelson, There is a better sequence, Journal of Recreational Mathematics, Vol. 8(1), 1975, pp. 39-43.

Crossrefs

Programs

  • Mathematica
    dd = 41; nn = 10^7; Clear[sp, L]; sp[] = 0; L[] = 0; For[ i = 0, i < PrimePi[dd], ++i, p = Prime[i + 1]; For[ n = 0, n < nn + dd, n += p, If[sp[n] == 0, sp[n] = p]]]; Print["init done"]; For[ n = 1, n <= nn, ++n, m = 1; For[ d = 0, d < dd, ++d, s = sp[n + d]; If[s == 0, Break[]]; If[s > d, m = Max[m, d + s]]; If[d >= m && L[d] == 0, L[d] = n]] ]; Reap[For[ i = 1, i <= dd, ++i, Print["a[", i, "] = ", L[i - 1]]; Sow[L[i - 1]]]][[2, 1]] (* Jean-François Alcover, Mar 26 2013, translated and adapted from Max Alekseyev's program *)

Extensions

Edited by N. J. A. Sloane, Aug 04 2007, Oct 08 2007

A130173 Starting points of stapled intervals.

Original entry on oeis.org

2184, 27828, 27829, 27830, 32214, 57860, 62244, 87890, 92274, 110990, 117920, 122304, 127374, 147950, 151058, 151059, 151060, 151061, 151062, 152334, 163488, 171054, 177980, 182364, 185924, 185925, 185926, 208010, 212394
Offset: 1

Views

Author

Max Alekseyev, Jul 24 2007

Keywords

Comments

A finite sequence of n consecutive positive integers is called "stapled" if each element in the sequence is not relatively prime to at least one other element in the sequence.
In other words, an interval is stapled if for every element x there is another element y (different from x) such that gcd(x,y)>1.
The shortest stapled interval has length 17 and starts with the number 2184.
It is interesting to notice that the intervals [27829,27846] and [27828,27846] are stapled while the interval [27828,27845] is not.
It is clear that a stapled interval [a,b] may not contain a prime number greater than b/2 (as such a prime would be coprime to every other element of the interval).
Together with Bertrand's Postulate this implies a>b/2 or b<2a. And it follows that
* a stapled interval may not contain prime numbers at all;
* for any particular positive integer a, we can determine if it is a starting point of some stapled interval.

References

  • H. L. Nelson, There is a better sequence, Journal of Recreational Mathematics, Vol. 8(1), 1975, pp. 39-43.

Crossrefs

A130170 "Stapled" intervals are defined in A090318. Call a stapled interval "maximal" if it is not a proper subinterval of any other stapled interval. Sequence gives starting points of maximal stapled intervals.

Original entry on oeis.org

2184, 27828, 32214, 57860, 62244, 87890, 92274, 110990, 117920, 122304, 127374, 147950, 151058, 152334, 163488, 171054, 177980, 182364, 185924, 208010, 212394, 238040, 242424, 249678, 260810, 264498, 268070, 272454
Offset: 1

Views

Author

Max Alekseyev, Jul 24 2007

Keywords

Crossrefs

A194585 Starting points of stapled intervals of length 17.

Original entry on oeis.org

2184, 27830, 32214, 57860, 62244, 87890, 92274, 117920, 122304, 147950, 152334, 177980, 182364, 208010, 212394, 238040, 242424, 268070, 272454, 298100, 302484, 328130, 332514, 358160, 362544, 388190, 392574, 418220, 422604, 448250
Offset: 1

Views

Author

M. F. Hasler, Oct 14 2011

Keywords

Comments

"Stapled" intervals are defined in A090318. They are at least of length 17, and those of this minimal length are listed here. Therefore, this is not only a subsequence of A130173, but also of A130171.
From Fidel I. Schaposnik, Aug 16 2014: (Start)
Let S be the set of distinct prime factors appearing in the factorization of at least two different numbers in the range [a,b], and m the product of all the elements in S.
Then it is clear that if [a,b] is a stapled interval, so is [m+a,m+b].
Moreover, if a > m then the range [a-m,b-m] is also a stapled interval of the same length, so we can group the stapled intervals of a given length in "chains".
To prove the g.f., note that S cannot contain any prime number greater than or equal to b-a+1, so for stapled intervals of length 17 the maximum value of m is m = 2*3*5*7*11*13 = 30030.
Then any stapled interval of length 17 must belong to a chain whose first element is at most 30030, and the only stapled intervals in this range are [2184,2200] and [27830,27846].
The g.f. encompasses both these chains, namely a(2*n+1) = 2184 + 30030*n and a(2*n+2) = 27830 + 30030*n.
(End)

Crossrefs

Programs

  • PARI
    {u=vector(17,j,1);v=vector(17,j,j);for(k=2,1e9, nextprime(k)
    				

Formula

From Colin Barker, Aug 16 2014: (Start)
a(n) = (-15031 + 10631*(-1)^n + 30030*n)/2.
a(n) = a(n-1) + a(n-2) - a(n-3).
G.f.: 2*x*(1100*x^2 + 12823*x + 1092) / ((x-1)^2*(x+1)). (End)
Showing 1-4 of 4 results.