OFFSET
1,1
EXAMPLE
211 = (188 + 211 + 213)/3 = 633/3 and 211 = 21*10 + 1.
MAPLE
p:=ithprime: a:=n->`if`(add(p(n-k), k=-1..1)=3*p(n) and modp(p(n), 10) = 1, p(n), NULL): seq(a(n), n=3..6000);
PROG
(GAP) P:=Filtered([1..52000], 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=1);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Muniru A Asiru, Apr 18 2018
STATUS
approved