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.

A109473 Let m = n-th squarefree number = A005117(n), and consider the smallest pair of consecutive squarefree numbers (r,s) with gcd(r,s) = m; sequence gives values of r.

Original entry on oeis.org

1, 422, 174, 22830, 9216772051242, 234374
Offset: 1

Views

Author

N. J. A. Sloane, based on a suggestion from David W. Wilson, Aug 20 2005

Keywords

Comments

a(7) is the first unknown value.
If m (in the table in Examples) is odd then a(m) >= A020754(m-1). If m is even then a(m) >= A020754(2m-1). - Jud McCranie, Sep 30 2020
a(12) (for m=17) is greater than 3.3*10^16. - Jud McCranie, Oct 16 2020

Examples

			n  |  m |    a(n) = r
---+----+---------------
1  |  1 |              1
2  |  2 |            422
3  |  3 |            174
4  |  5 |          22830
5  |  6 |  9216772051242
6  |  7 |         234374
7  | 10 |              ?
8  | 11 |    21971536246
9  | 13 |  8678016978774
10 | 14 |              ?
11 | 15 | 36442589727570
Specifically, 174 is squarefree, 177 is the next squarefree integer, and gcd(174,177) = 3; this is the first pair of consecutive squarefree numbers whose GCD is 3, so a(3)=174. - _Jud McCranie_, Nov 25 2019
		

Crossrefs

See A109505 for another version. Cf. A005117, A051681, A020754, A337914, A337915.

Extensions

a(5) from Jud McCranie, Aug 28 2005
a(8) from Jud McCranie, Aug 29 2005 (see Examples)
a(9) from Jud McCranie, Aug 31 2005 (see Examples)
Don Reble pointed out that the value of a(5), 9216772051254, given in the DATA section should have been 9216772051242, as in the EXAMPLE section. Revised definition to clarify the difference between n and m. - N. J. A. Sloane, Nov 25 2019
a(11) from Jud McCranie, Sep 30 2020 (see Examples)

A337914 Squarefree multiples of 11 such that a(n)+11 is also squarefree and all integers between are not squarefree.

Original entry on oeis.org

21971536246, 28062102871, 35322768074, 70470712246, 80352468746, 81659032818, 91738254619, 92802362774, 99529917146, 112184349167, 114294175743, 143264113674, 183904912070, 199569905722, 219349795115, 223879398215, 242719744322, 261356598415
Offset: 1

Views

Author

Jud McCranie, Oct 06 2020

Keywords

Comments

The term a(1) is A109505(11) and A109473(8).

Examples

			21971536246 and 21971536246+11 are successive squarefree integers, and their GCD is 11.
		

Crossrefs

A337915 Squarefree multiples of 15 such that a(n)+15 is also squarefree and all integers between are not squarefree.

Original entry on oeis.org

36442589727570, 59068995605115, 70458333341415, 93553802716515, 99321073884915, 104575423448670, 225934088816670, 241427108122215, 245679971474670, 257496300981015, 263154806220570, 275458942061070, 312686748592170, 425667633054315, 448345051339515
Offset: 1

Views

Author

Jud McCranie, Oct 06 2020

Keywords

Comments

The terms are congruent to 15 or 870 mod 900 (900=2^2*3^2*5^2). The term a(1) is A109505(15) and A109473(10).

Crossrefs

Cf. A337914.

A373704 a(n) is the least start of a run of exactly n successive squarefree numbers that are pairwise coprime, or -1 if no such run exists.

Original entry on oeis.org

2526, 173, 5, 1, 17, 11, 89, 1049, 111539, 213341, 54848527
Offset: 1

Views

Author

Amiram Eldar, Jun 14 2024

Keywords

Comments

Equivalently, a(n) is the least start of a run of exactly n successive squarefree numbers whose product is also a squarefree number.
A run of exactly n successive squarefree numbers is composed of n successive squarefree numbers such that the squarefree number that precedes the start of the run (if it does not start with 1) and the squarefree number that follows the endpoint of the run are both not coprime to one of the members of the run.
a(12) > 10^11, if it exists.

Examples

			a(1) = 2526 because 2526 is squarefree, it is preceded by the squarefree number 2522 and gcd(2522, 2526) = 2 > 1, it is followed by the squarefree number 2530 and gcd(2526, 2530) = 2 > 1, and 2526 is the least number with this property.
a(2) = 173 because 173 and 174 are successive squarefree numbers that are coprime. 170, the squarefree number that precedes 173, and 177, the squarefree number that follows 174, are both not coprime to 174.
a(2) does not equal 170 because although 170 and 173 are two successive squarefree numbers that are coprime, they are a part of a longer run of 3 successive squarefree numbers that are pairwise coprime: 167, 170 and 173.
a(3) = 5 because 5, 6 and 7 are 3 successive squarefree numbers that are pairwise coprime: gcd(5, 6) = gcd(6, 7) = gcd(5, 7) = 1. They are not a part of a longer run since the squarefree number that precedes 5 is 3 and gcd(3, 6) = 3 > 1, and the squarefree number that follows 7 is 10 and gcd(5, 10) = 5 > 1. (5, 6, 7) is the run with the least start, 5, that has this property.
		

Crossrefs

Sequences related to successive squarefree numbers: A077395, A109473, A109505, A373551, A373552.

Programs

  • Mathematica
    pairCoprimeQ[s_] := Module[{ans = True}, Do[Do[If[! CoprimeQ[s[[i]], s[[j]]], ans = False; Break[]], {j, 1, i - 1}], {i, 1, Length[s]}]; ans];
    seq[nmax_, kmax_] := Module[{v = Table[0, {nmax}], s = {}, len = 0, init = 0, c = 0}, Do[If[SquareFreeQ[k], len = Length[s];
    AppendTo[s, k]; While[!pairCoprimeQ[s], s = Drop[s, 1]]; If[Length[s] <= len, If[len <= nmax && v[[len]] == 0, c++; v[[len]] = init]]; init = s[[1]]; If[c == nmax || k > kmax, Break[]]], {k, 1, kmax}]; v]; seq[10, 250000]
  • PARI
    iscoprime(s) = {for(i = 1, #s, for(j = 1, i-1, if(gcd(s[i], s[j]) > 1, return(0)))); 1;}
    seq(nmax, kmax) = {my(v = vector(nmax), s = List(), len = 0, init = 0, c = 0); forsquarefree(k = 1, kmax, len = #s; listput(s, k[1]); while(!iscoprime(s), listpop(s, 1)); if(#s <= len, if(len <= nmax && v[len] == 0, c++; v[len] = init)); init = s[1]; if(c == nmax || k[1] > kmax, break)); v;}
Showing 1-4 of 4 results.