login
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