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.

A243390 Numbers k such that, taken pairwise, k, prime(k) and phi(k) have no common digits.

This page as a plain text file.
%I A243390 #25 Sep 06 2020 06:41:40
%S A243390 2,3,4,5,6,8,9,10,12,15,16,20,22,39,44,46,48,65,66,77,87,93,99,123,
%T A243390 134,146,154,165,230,246,430,441,446,494,522,528,552,555,566,622,662,
%U A243390 711,737,738,740,825,855,984,1155,1160,1170,1180,1214,2230,5055,8878
%N A243390 Numbers k such that, taken pairwise, k, prime(k) and phi(k) have no common digits.
%C A243390 a(95) > 10^10 if it exists. - _David A. Corneth_, Aug 25 2020
%H A243390 David A. Corneth, <a href="/A243390/b243390.txt">Table of n, a(n) for n = 1..94</a>
%e A243390 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.
%t A243390 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 *)
%o A243390 (PARI)
%o A243390 { s=[];
%o A243390   for(n=1, 50000,
%o A243390     u=vecsort(digits(n),,8);
%o A243390     v=vecsort(digits(prime(n)),,8);
%o A243390     w=vecsort(digits(eulerphi(n)),,8);
%o A243390     if(setintersect(u, v)==[]&&setintersect(u, w)==[]&&setintersect(v, w)==[],
%o A243390       s=concat(s, n)
%o A243390     )
%o A243390   );
%o A243390   s }
%o A243390 (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
%Y A243390 Cf. A000010, A000040, A243355, A243356.
%K A243390 nonn,base
%O A243390 1,1
%A A243390 _Colin Barker_, Jun 04 2014