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-2 of 2 results.

A382699 First member of the least set of 4 consecutive primes such that the sum of each pair of consecutive primes in this set is a multiple of n.

Original entry on oeis.org

2, 3, 5, 23, 157, 5, 977, 53, 5171, 157, 33871, 137, 159293, 977, 2969, 541, 406873, 5171, 471313, 6047, 166739, 33871, 2112193, 5309, 520763, 159293, 207869, 5443, 2404471, 2969, 1531487, 88919, 2673791, 406873, 6056569, 95737, 8480357, 471313, 561829, 73477
Offset: 1

Views

Author

Paolo P. Lava, Apr 04 2025

Keywords

Examples

			a(4) = 23. The least 4 consecutive primes are 23, 29, 31, 37:
  23 + 29 = 52 and 52/4 = 13;
  29 + 31 = 60 and 60/4 = 15;
  31 + 37 = 68 and 68/4 = 17.
a(37) = 8480357. The least 4 consecutive primes are 8480357, 8480369, 8480431, 8480443:
  8480357 + 8480369 = 16960726 and 16960726/37 = 458398;
  8480369 + 8480431 = 16960800 and 16960800/37 = 458400;
  8480431 + 8480443 = 16960874 and 16960874/37 = 458402.
		

Crossrefs

Cf. A254862 (2 consecutive), A382698 (3 consecutive), A382700 (5 consecutive).

Programs

  • Maple
    P:=proc(q) local a,b,c,d,n,v; v:=[];for n from 1 to 30 do a:=2; b:=3; c:=5; d:=7;
    while true do if frac((a+b)/n)=0 and frac((b+c)/n)=0 and frac((c+d)/n)=0 then v:=[op(v),a]; break;
    else a:=b; b:=c; c:=d; d:=nextprime(d); fi; od; od; op(v); end: P(2*10^6);
  • Mathematica
    Do[p=0;Until[Mod[Prime[p]+Prime[p+1],n]==0&&Mod[Prime[p+1]+Prime[p+2],n]==0&&Mod[Prime[p+2]+Prime[p+3],n]==0,p++];a[n]=Prime[p],{n,45}];Array[a,40] (* James C. McMahon, Apr 09 2025 *)

A382700 First member of the least set of 5 consecutive primes such that the sum of each pair of consecutive primes in this set is a multiple of n.

Original entry on oeis.org

2, 3, 5, 47, 3593, 5, 10487, 523, 38377, 3593, 1796671, 409, 947423, 10487, 60383, 62501, 18164651, 38377, 15095579, 32633, 3272567, 1796671, 116863451, 67819, 65835479, 947423, 7005239, 1165217, 1154953243, 60383, 800037461, 7442557, 15442121, 18164651, 771405431
Offset: 1

Views

Author

Paolo P. Lava, Apr 04 2025

Keywords

Examples

			a(4) = 47. The least 5 consecutive primes are 47, 53, 59, 61, 67:
  47 + 53 = 100 and 100/4 = 25;
  53 + 59 = 112 and 112/4 = 28;
  59 + 61 = 120 and 120/4 = 30;
  61 + 67 = 128 and 128/4 = 32.
a(27) = 7005239. The least 5 consecutive primes are 7005239, 7005277, 7005293, 7005331, 7005347:
  7005239 + 7005277 = 14010516 and 14010516/27 = 518908;
  7005277 + 7005293 = 14010570 and 14010570/27 = 518910;
  7005293 + 7005331 = 14010624 and 14010624/27 = 518912;
  7005331 + 7005347 = 14010678 and 14010678/27 = 518914.
		

Crossrefs

Cf. A254862 (2 consecutive), A382698 (3 consecutive), A382699 (4 consecutive).
Showing 1-2 of 2 results.