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.

A185938 First of a run of 3 or more consecutive primes which are congruent to 2 (mod 3).

This page as a plain text file.
%I A185938 #24 Mar 22 2025 18:04:12
%S A185938 47,167,251,257,503,557,587,647,941,971,1097,1181,1217,1361,1493,1499,
%T A185938 1889,1901,1907,2063,2393,2399,2411,2441,2897,2957,3191,3797,4007,
%U A185938 4073,4373,4391,4397,4451,4457,4673,4679,4691,4871,5081,5237,5261,5297,5351,5381,5387,5801,6257,6311,6317,6857,6911,6971,7001,7079
%N A185938 First of a run of 3 or more consecutive primes which are congruent to 2 (mod 3).
%C A185938 The subsequence of terms A185935(k) such that nextprime(A185935(k))=A185935(k+1). If nextprime(a(n))=a(n+1), then a(n) is in A185941.
%H A185938 Paolo Xausa, <a href="/A185938/b185938.txt">Table of n, a(n) for n = 1..10000</a>
%t A185938 Select[Partition[Prime[Range[1500]], 3, 1], Mod[#, 3] == {2, 2, 2} &][[All, 1]] (* _Paolo Xausa_, Mar 07 2025 *)
%o A185938 (PARI) my(s=Mod([2,2,2],3), o=vector(#s), i=0); forprime( p=1,1e4, o[i++%3+1]=p; o-s || print1( o[(i+1)%3+1], ", "))
%Y A185938 Cf. A185935, A185936, A185941.
%K A185938 nonn
%O A185938 1,1
%A A185938 _M. F. Hasler_, Feb 06 2011