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.

A212769 p*q modulo (p+q) with p, q consecutive primes.

This page as a plain text file.
%I A212769 #16 Feb 21 2022 16:42:52
%S A212769 1,7,11,5,23,11,35,17,43,59,59,35,83,41,91,103,119,119,65,143,143,77,
%T A212769 163,77,95,203,101,215,107,191,125,259,275,263,299,299,311,161,331,
%U A212769 343,359,347,383,191,395,169,181,221,455,227,463,479,467,499,511,523
%N A212769 p*q modulo (p+q) with p, q consecutive primes.
%C A212769 Graph consists of two branches, the upper one corresponds to cases (q-p) = 2 (mod 4), and the lower one to cases (q-p) = 0 (mod 4).
%C A212769 If prime(n+k) = prime(n)+4*k^2 for k=1..m, then a(n)=...=a(n+m-1)=2*prime(n)+1. - _Robert Israel_, Jan 20 2022
%H A212769 Zak Seidov, <a href="/A212769/b212769.txt">Table of n, a(n) for n = 1..1000</a>
%F A212769 From _Robert Israel_, Jan 20 2022: (Start)
%F A212769 If prime(n+1)-prime(n) = 4*k+2 with k^2 <= prime(n)/2, then a(n) = 2*prime(n)-4*k^2+1.
%F A212769 If prime(n+1)-prime(n) = 4*k with 4*k^2+2*k<prime(n), then a(n) = prime(n) - 4*k^2 + 2*k. (End)
%p A212769 f:= proc(n) local p,q;
%p A212769   p:= ithprime(n); q:= nextprime(p);
%p A212769   (p*q) mod (p+q)
%p A212769 end proc:
%p A212769 map(f, [$1..100]); # _Robert Israel_, Jan 20 2022
%t A212769 Mod[Times@@#,Total[#]]&/@Partition[Prime[Range[60]],2,1] (* _Harvey P. Dale_, Feb 21 2022 *)
%o A212769 (PARI) a(n) = (prime(n)*prime(n+1)) % (prime(n)+prime(n+1)); \\ _Michel Marcus_, Oct 19 2013
%o A212769 (PARI) a(n)=my(p=prime(n),q=nextprime(p+1)); (p*q)%(p+q) \\ _Charles R Greathouse IV_, Oct 19 2013
%K A212769 nonn
%O A212769 1,2
%A A212769 _Zak Seidov_, May 26 2012