login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A243462
Numbers n such that prime(n) and phi(n) have the same decimal digits.
1
51, 279, 326, 798, 810, 977, 1009, 1019, 1360, 1369, 1561, 1687, 1711, 1735, 1979, 2272, 2505, 2970, 3502, 4413, 4690, 5277, 5283, 5837, 6151, 6645, 6769, 6943, 7633, 8198, 8313, 8318, 10391, 10877, 11321, 15079, 16636, 17961, 18653, 18948, 19143, 20070
OFFSET
1,1
EXAMPLE
51 is in the sequence because prime(51) = 233 and phi(51) = 32.
20070 is in the sequence because prime(20070) = 225583 and phi(20070) = 5328.
PROG
(PARI) s=[]; for(n=1, 30000, if(vecsort(digits(prime(n)), , 8) == vecsort(digits(eulerphi(n)), , 8), s=concat(s, n))); s
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Colin Barker, Jun 05 2014
STATUS
approved