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.

A168678 Least prime p such that the prime(n)-1 consecutive primes starting at p are all congruent to 1 (mod prime(n)).

Original entry on oeis.org

3, 31, 22501, 9984437
Offset: 1

Views

Author

T. D. Noe, Dec 02 2009

Keywords

Comments

By a theorem of Shiu, a(n) exists for all n.

Crossrefs

Cf. A111287.

Programs

  • Mathematica
    Table[p=Prime[n]; cnt=0; q=2; While[q=NextPrime[q]; If[Mod[q,p]==1, cnt++, cnt=0]; cnt
    				
  • PARI
    A168678(n) = {local(p,m,c,r);p=2;r=2;m=prime(n);c=0;while(cMichael B. Porter, Feb 02 2010