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.

A133677 Integers k such that prime(k)*(2*prime(k)-1)/3 is an integer.

This page as a plain text file.
%I A133677 #35 Apr 19 2025 18:03:58
%S A133677 1,2,3,5,7,9,10,13,15,16,17,20,23,24,26,28,30,32,33,35,39,40,41,43,45,
%T A133677 49,51,52,54,55,56,57,60,62,64,66,69,71,72,76,77,79,81,83,86,87,89,91,
%U A133677 92,94,96,97,98,102,103,104,107,108,109,113,116,118,119,120,123,124,126
%N A133677 Integers k such that prime(k)*(2*prime(k)-1)/3 is an integer.
%C A133677 Apart from the term "2", the same as A091177. - _Stefan Steinerberger_, Dec 29 2007
%C A133677 Numbers n such that the number of distinct residues r in the congruence x^3 == r (mod p) is equal to p where p = prime(n). See A046530. - _Michel Lagneau_, Sep 28 2016
%C A133677 The asymptotic density of this sequence is 1/2 (by Dirichlet's theorem). - _Amiram Eldar_, Feb 28 2021
%H A133677 Amiram Eldar, <a href="/A133677/b133677.txt">Table of n, a(n) for n = 1..10000</a>
%F A133677 Integers k such that (prime(k) mod 3) mod 2 = 0. - _Gary Detlefs_, Dec 06 2011
%e A133677 4 is not in the sequence since prime(4)*(2*prime(4) - 1)/3 = 7*(2*7 - 1)/3 = 7*13/3 = 91/3 is not an integer, but 5 is in the sequence since prime(5)*(2*prime(5) - 1)/3 = 11*(2*11 - 1)/3 = 11*21/3 = 11*7 = 77 is an integer. - _Michael B. Porter_, Sep 28 2016
%p A133677 for n from 1 to 126 do if((ithprime(n) mod 3) mod 2=0) then print(n) fi od; # _Gary Detlefs_, Dec 06 2011
%t A133677 Union[Table[If[IntegerQ[Prime[n]*(2*Prime[n] - 1)/3], n, {}], {n, 1, 100}]]
%t A133677 pnQ[n_]:=Module[{pn=Prime[n]},IntegerQ[(pn(2pn-1))/3]]; Select[Range[ 150], pnQ] (* _Harvey P. Dale_, Oct 02 2011 *)
%t A133677 Sort@ Join[{2}, Select[ Range@ 126, Mod[2*Prime[#], 3] == 1 &]] (* _Robert G. Wilson v_, Sep 28 2016 *)
%t A133677 Select[Range[126], IntegerQ[Prime[#]*(2 *Prime[#] - 1)/3] &] (* _Robert Price_, Apr 19 2025 *)
%Y A133677 Cf. A046530, A091177, A133645.
%K A133677 nonn
%O A133677 1,2
%A A133677 _Roger L. Bagula_, Dec 28 2007