OFFSET
1,1
COMMENTS
a(95) > 10^10 if it exists. - David A. Corneth, Aug 25 2020
LINKS
David A. Corneth, Table of n, a(n) for n = 1..94
EXAMPLE
n = 1214, prime(1214) = 9839, phi(1214) = 606; (1214,9839), (1214,606) and (9839,606) have no common digits. So 1214 is in the sequence.
MATHEMATICA
ncdQ[n_]:=Module[{a=IntegerDigits[n], b=IntegerDigits[Prime[n]], c = IntegerDigits[ EulerPhi[n]]}, Intersection[a, b] == Intersection[b, c] == Intersection[a, c]=={}]; Select[Range[9000], ncdQ] (* Harvey P. Dale, Aug 24 2020 *)
PROG
(PARI)
{ s=[];
for(n=1, 50000,
u=vecsort(digits(n), , 8);
v=vecsort(digits(prime(n)), , 8);
w=vecsort(digits(eulerphi(n)), , 8);
if(setintersect(u, v)==[]&&setintersect(u, w)==[]&&setintersect(v, w)==[],
s=concat(s, n)
)
);
s }
(PARI) upto(n) = {my(t=1, res=List()); forprime(p=2, oo, st=Set(digits(t)); sp=Set(digits(p)); if(#setintersect(st, sp)==0, se=Set(digits(eulerphi(t))); if(#setintersect(st, se)==0 && #setintersect(sp, se)==0, listput(res, t))); t++; if(t>=n, return(res)))} \\ David A. Corneth, Aug 25 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Colin Barker, Jun 04 2014
STATUS
approved