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.

A259360 Initial prime in the least set of exactly n+1 consecutive primes with n gaps all multiples of 4.

This page as a plain text file.
%I A259360 #24 Jul 21 2015 05:08:27
%S A259360 7,89,199,883,12401,463,36551,11593,183091,766261,3358169,241603,
%T A259360 11739307,9177431,12270077,105639091,310523021,297779117,727334879,
%U A259360 5344989829,1481666377,2572421893,1113443017,79263248027,84676452781
%N A259360 Initial prime in the least set of exactly n+1 consecutive primes with n gaps all multiples of 4.
%H A259360 Giovanni Resta, Charles R Greathouse IV and Zak Seidov, <a href="/A259360/b259360.txt">Table of n, a(n) for n = 1..33</a>
%e A259360 a(6)=463 because the first set of 7 consecutive primes is {463,467,479,487,491,499,503} with 6 gaps {4,12,8,4,8,4} all multiples of 4 while the next prime after 503 is 509 and 509-503=6 is not a multiple of 4.
%o A259360 (PARI) back(p,n)=while(n,p=precprime(p-1); n--); p
%o A259360 v=vector(20); g=0; p=2; forprime(q=3,1e6, if((q-p)%4, if(g&&g<=#v&&v[g]==0, v[g]=back(p,g)); g=0, g++);p=q); v \\ _Charles R Greathouse IV_, Jul 14 2015
%Y A259360 Cf. A054678, A054679, A054680, A080378, A098059.
%K A259360 nonn
%O A259360 1,1
%A A259360 _Zak Seidov_, Jun 24 2015
%E A259360 a(13)-a(14) corrected by _Charles R Greathouse IV_, Jul 14 2015
%E A259360 a(24)-a(25) by _Zak Seidov_, Jul 15 2015