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.

A210186 a(n) = least integer m>1 such that m divides none of P_i + P_j with 0

Original entry on oeis.org

2, 3, 5, 7, 11, 19, 23, 23, 23, 47, 59, 61, 71, 71, 71, 101, 101, 101, 101, 101, 101, 113, 113, 113, 113, 113, 113, 113, 113, 113, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 487, 487, 661, 661, 661, 661, 661, 661, 661, 661, 661, 719, 719, 719, 719, 719, 719, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811
Offset: 1

Views

Author

Zhi-Wei Sun, Mar 18 2012

Keywords

Comments

Conjecture: all the terms are primes and a(n) < n^2 for all n > 1.

Examples

			We have a(3)=5 since 2+2*3, 2+2*3*5, 2*3+2*3*5 are pairwise distinct modulo m=5 but not pairwise distinct modulo m=2,3,4.
		

Crossrefs

Programs

  • Mathematica
    P[n_]:=Product[Prime[k],{k,1,n}]
    R[n_,m_]:=Product[If[Mod[P[k]+P[j],m]==0,0,1],{k,2,n},{j,1,k-1}]
    Do[Do[If[R[n,m]==1,Print[n," ",m];Goto[aa]],{m,2,Max[2,n^2]}]; Print[n];Label[aa];Continue,{n,1,300}]