OFFSET
1,1
EXAMPLE
157 = (151 + 157 + 163)/3 = 471/3 and 157 = 15*10 + 7.
MAPLE
p:=ithprime: a:=n->`if`(add(p(n-k), k=-1..1)=3*p(n) and modp(p(n), 10) = 7, p(n), NULL): seq(a(n), n=3..2000);
PROG
(GAP) P:=Filtered([1..16200], IsPrime);;
a:=Filtered(List(Filtered(List([0..Length(P)-3], k->List([1..3], j->P[j+k])), i->Sum(i)/3=i[2]), m->m[2]), l-> l mod 10=7);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Muniru A Asiru, Apr 18 2018
STATUS
approved