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.

A222214 In the number n, replace all (decimal) digits '0' with '5' and vice versa.

This page as a plain text file.
%I A222214 #9 Mar 31 2017 00:31:04
%S A222214 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 A222214 26,27,28,29,35,31,32,33,34,30,36,37,38,39,45,41,42,43,44,40,46,47,48,
%U A222214 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 A222214 In the number n, replace all (decimal) digits '0' with '5' and vice versa.
%C A222214 The map which is applied to primes in A171023.
%H A222214 Vincenzo Librandi, <a href="/A222214/b222214.txt">Table of n, a(n) for n = 0..1000</a>
%t A222214 a[n_]:= IntegerDigits[n]/.{0->5, 5->0} // FromDigits; Table[a[n], {n, 0, 80}] (* _Vincenzo Librandi_, Jul 29 2013 *)
%o A222214 (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 A222214 Cf. A222210-A222254; A171013-A171016, A175770, A171018-A171057.
%K A222214 nonn,base,easy
%O A222214 0,1
%A A222214 _M. F. Hasler_, Feb 12 2013