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.

A154502 Sum of any 3 consecutive numbers is prime and a(n+2)-(a(n+1)+a(n)) is prime, a(1)=3,a(2)=31.

This page as a plain text file.
%I A154502 #4 Jun 19 2021 12:49:29
%S A154502 3,31,37,71,89,157,163
%N A154502 Sum of any 3 consecutive numbers is prime and a(n+2)-(a(n+1)+a(n)) is prime, a(1)=3,a(2)=31.
%C A154502 3+31+37=71;37-(3+31)=3,...
%t A154502 a=3;b=31;lst={a,b};Do[c=Prime[n];p1=c+a+b;p2=c-(a+b);If[PrimeQ[p1]&&PrimeQ[p2],AppendTo[lst,c];a=b;b=c],{n,9,9!}];lst
%Y A154502 Cf. A154484, A154485, A154486, A154487, A154488, A154493, A154494, A154495, A154496, A062391, A154497, A154498, A154500, A154501
%K A154502 nonn
%O A154502 1,1
%A A154502 _Vladimir Joseph Stephan Orlovsky_, Jan 10 2009
%E A154502 NAME adapted to offset. - _R. J. Mathar_, Jun 19 2021