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.

A157115 Alternate terms of A007519, A007520, A007521, A007522.

This page as a plain text file.
%I A157115 #8 Jan 17 2013 02:58:19
%S A157115 17,3,5,7,41,11,13,23,73,19,29,31,89,43,37,47,97,59,53,71,113,67,61,
%T A157115 79,137,83,101,103,193,107,109,127,233,131,149,151,241,139,157,167,
%U A157115 257,163,173,191,281,179,181,199,313,211,197,223,337,227,229,239,353,251,269
%N A157115 Alternate terms of A007519, A007520, A007521, A007522.
%C A157115 Or, read the following table by columns:
%C A157115 17,41,73,89,97,113,137,193,233,241,257,281,313,337,353,401,409,... (primes = = 1 mod 8)
%C A157115 3,11,19,43,59,67,83,107,131,139,163,179,211,227,251,283,307,331,... (primes == 3 mod 8)
%C A157115 5,13,29,37,53,61,101,109,149,157,173,181,197,229,269,277,293,317,... (primes == 5 mod 8)
%C A157115 7,23,31,47,71,79,103,127,151,167,191,199,223,239,263,271,311,359,... (primes == 7 mod 8)
%H A157115 Zak Seidov, <a href="/A157115/b157115.txt">Table of n, a(n) for n = 1..4000</a>
%e A157115 The first four primes congruent to (1,3,5,7) mod 8 are 17,3,5,7, hence a(1..4)=17,3,5,7;
%e A157115 The next four primes congruent to (1,3,5,7) mod 8 are 41,11,13,23, hence a(5..8)=41,11,13,23, etc.
%t A157115 s[i_]:=(c=0;a=2*i-1;Reap[Do[If[PrimeQ[a],c++;Sow[a]];If[c>99,Break[],a = a+8],{10^8}]][[2,1]]);Flatten[Transpose[Table[s[i],{i,4}]]]; (* _Zak Seidov_, Jan 16 2013 *)
%Y A157115 Cf. A007519 - A007522, A042987.
%K A157115 nonn,tabf
%O A157115 1,1
%A A157115 _Zak Seidov_ and _N. J. A. Sloane_, Feb 23 2009