%I #9 Mar 31 2017 00:31:04
%S 5,1,2,3,4,0,6,7,8,9,15,11,12,13,14,10,16,17,18,19,25,21,22,23,24,20,
%T 26,27,28,29,35,31,32,33,34,30,36,37,38,39,45,41,42,43,44,40,46,47,48,
%U 49,5,1,2,3,4,0,6,7,8,9,65,61,62,63,64,60,66,67,68,69,75,71,72,73,74,70
%N In the number n, replace all (decimal) digits '0' with '5' and vice versa.
%C The map which is applied to primes in A171023.
%H Vincenzo Librandi, <a href="/A222214/b222214.txt">Table of n, a(n) for n = 0..1000</a>
%t a[n_]:= IntegerDigits[n]/.{0->5, 5->0} // FromDigits; Table[a[n], {n, 0, 80}] (* _Vincenzo Librandi_, Jul 29 2013 *)
%o (PARI) A222214(n,d=[5,1,2,3,4,0,6,7,8,9])={sum(i=1,#n=digits(n),d[n[i]+1]*10^(#n-i),!n*d[1])} \\ N.B.: digits(0)=[] in PARI (v.2.6)
%Y Cf. A222210-A222254; A171013-A171016, A175770, A171018-A171057.
%K nonn,base,easy
%O 0,1
%A _M. F. Hasler_, Feb 12 2013