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.

A111931 Smallest prime p such that 1/2, 2/3, 3/4, ..., (m-1)/m are n-th power non-residues modulo p for maximum possible m (=A000236(n)).

Original entry on oeis.org

11, 67, 24077, 29041891, 33699452071
Offset: 2

Views

Author

Max Alekseyev, Aug 21 2005

Keywords

Comments

A000236(n) is the maximum length of a run of consecutive residues modulo prime p, starting with 1, where no two adjacent elements belong to the same n-th power residue class (in other words, there is no n-th power residue modulo p in the sequence of ratios 1/2, 2/3, ..., (A000236(n)-1)/A000236(n)). a(n) equals the smallest p admitting a run of maximum length A000236(n).

Examples

			a(2)=11 since A000236(2)=3 and 1/2=6, 2/3=8 are nonsquares modulo 11, and there is no smaller prime modulo which 1/2 and 2/3 are nonsquares.
		

Crossrefs

Extensions

a(6) from Don Reble, added by Max Alekseyev, Sep 03 2017

A109327 Erroneous version of A000236.

Original entry on oeis.org

3, 8, 20, 44, 80, 343, 399
Offset: 2

Views

Author

Keywords

A000445 Latest possible occurrence of the first consecutive pair of n-th power residues, modulo any prime.

Original entry on oeis.org

9, 77, 1224, 7888, 202124, 1649375
Offset: 2

Views

Author

Keywords

Comments

The paper by Adolf Hildebrand proves that a(n) is finite for all n. - Christopher E. Thompson, Dec 05 2019
Don Reble has reported computations proving that 1499876 <= a(8) <= 1508324, which improves on the references below. Note also that it shows a(8) < a(7). - Christopher E. Thompson, Jan 14 2020

Examples

			Every large prime has a pair of consecutive quadratic (n=2) residues which appear not later than 9,10, so a(2)=9. - _Len Smiley_
		

References

  • P. ErdÅ‘s and R. L. Graham, Old and New Problems and Results in Combinatorial Number Theory. L'Enseignement Math., Geneva, 1980, p. 87.
  • W. H. Mills, Bounded consecutive residues and related problems, pp. 170-174 of A. L. Whiteman, ed., Theory of Numbers, Proc. Sympos. Pure Math., 8 (1965). Amer. Math. Soc.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A000236.

Extensions

Name edited by Christopher E. Thompson, Dec 10 2019

A097160 Greatest prime p such that there are n, but not n+1, consecutive quadratic residues mod p, or -1 if no such prime exists.

Original entry on oeis.org

5, 17, 53, 193, 457, 2153
Offset: 1

Views

Author

Robert G. Wilson v, Jul 28 2004

Keywords

Comments

The most likely continuation (after 2153) is 4481, 9857, 25793, 60961, 132113, 324673. - Don Reble, Aug 02 2014 (see LINKS). - N. J. A. Sloane, Dec 11 2015
From David L. Harden: (Start)
"Proof that A097160(2)=17:
"Since the quadratic residues modulo 17 are 1,2,4,8,9,13,15 and 16, there are no 3 consecutive integers among these. Thus A097160(2)>=17.
"To show it is 17, we show there will be a run of 3 when p>17:
"Case 1. (2/p)=(3/p)=1. 1,2,3 works. (Also, 2,3,4 or 48,49,50 will work)
"Case 2. (2/p)=1 and (3/p)=-1. In this case, 8,9,10 works unless (5/p)=-1. 49,50,51 will work unless (17/p)=1. But then 15,16,17 works.
"Case 3. (2/p)=-1 and (3/p)=1. In this case, 3,4,5 works unless (5/p)=-1. But then 49/120, 169/120, 289/120 will work since 120 is invertible modulo p.
"Case 4. (2/p)=(3/p)=-1. Then 1/24, 25/24, 49/24 works. QED
Here the quadratic character of only 2 primes was used; for higher-index terms, more primes should be needed (how many?) and this promises to make computation (via these ideas) exponentially harder.
"One can attempt to carry out this kind of reasoning while eschewing fractions; then the chase for a run of quadratic residues is longer but one can obtain a universal upper bound on the onset of such a run of quadratic residues.
"Note that if the quadratic character of -1 is known, then a run of consecutive quadratic residues can include both negative and positive fractions (like -7/6, -1/6, 5/6, 11/6).
"Otherwise the help from knowing (-1/p) seems to be rather limited:
"If (-1/p)=-1, then a run of k quadratic nonresidues mod p can be turned into a run of k quadratic residues mod p by multiplying them by -1 and reversing their order. This allows the computation in this case to be that much easier. However, this also seems to make it harder for a prime p in A097160 to have (-1/p)=-1, as evidenced by the fact that all the terms included there are congruent to 1 mod 4.
"Problem: Are all terms in A097160 congruent to 1 mod 4?
"Also, beyond A097160(3)=53, all listed terms are congruent to 1 mod 8. Does this hold up (if so, why?), or is it just a result of how little computation has been done?" (End)

Examples

			Only the first three primes have no consecutive quadratic residues, so a(1) is the third prime, 5.
53 has three consecutive quadratic resides, but not four; and each larger prime has four consecutives.
		

References

  • Alfred Brauer, Ueber Sequenzen von Potenzresten, S.-B. Deutsch. Akad. Wiss. Berlin 1928, 9-16.

Crossrefs

Cf. A000236 and A000445 for higher-degree residues.

Programs

  • Mathematica
    f[l_, a_] := Module[{A = Split[l], B}, B = Last[ Sort[ Cases[A, x : {a ..} :> { Length[x], Position[A, x][[1, 1]]}]]]; {First[B], Length[ Flatten[ Take[A, Last[B] - 1]]] + 1}]; g[n_] := g[n] = f[ JacobiSymbol[ Range[ Prime[n] - 1], Prime[n]], 1][[1]]; g[1] = 1; a = Table[0, {30}]; Do[ a[[ g[n]]] = n, {n, 2556}]; Prime[a]

Extensions

The old values of a(7) and a(8) were unproved, while a(9) and a(10) were wrong (and are still unknown), according to email message from Don Reble received by N. J. A. Sloane, Dec 11 2015, see LINKS.
Showing 1-4 of 4 results.