login
A222233
In the number n, replace all (decimal) digits '2' with '9' and vice versa.
1
0, 1, 9, 3, 4, 5, 6, 7, 8, 2, 10, 11, 19, 13, 14, 15, 16, 17, 18, 12, 90, 91, 99, 93, 94, 95, 96, 97, 98, 92, 30, 31, 39, 33, 34, 35, 36, 37, 38, 32, 40, 41, 49, 43, 44, 45, 46, 47, 48, 42, 50, 51, 59, 53, 54, 55, 56, 57, 58, 52, 60, 61, 69, 63, 64, 65, 66, 67, 68, 62, 70, 71, 79, 73, 74, 75
OFFSET
0,3
COMMENTS
The map which is applied to primes in A171051.
LINKS
MATHEMATICA
a[n_]:= IntegerDigits[n]/.{2->9, 9->2} // FromDigits; Table[a[n], {n, 0, 80}] (* Vincenzo Librandi, Jul 30 2013 *)
PROG
(PARI) A222233(n, d=[0, 1, 9, 3, 4, 5, 6, 7, 8, 2])=sum(i=1, #n=digits(n), d[n[i]+1]*10^(#n-i)) \\ gives correct value for n=0 iff d[1]=0, since digits(0)=[] in PARI (v.2.6)
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler, Feb 12 2013
STATUS
approved