OFFSET
1,1
COMMENTS
No further terms < 10^9.
EXAMPLE
MAPLE
f:= proc(n) option remember; local t, x;
x:= n - add(t^2, t=convert(n, base, 10));
if not isprime(x) then 1 else 1+procname(x) fi
end proc:
V:= Vector(7): count:= 0: p:= 1:
while count < 7 do
p:= nextprime(p); v:= f(p);
if v <= N and V[v] = 0 then V[v]:= p; count:= count+1 fi
od:
convert(V, list);
CROSSREFS
KEYWORD
nonn,more,base
AUTHOR
J. M. Bergot and Robert Israel, Mar 31 2021
STATUS
approved