login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A222217 In the number n, replace all (decimal) digits '0' with '8' and vice versa. 1
8, 1, 2, 3, 4, 5, 6, 7, 0, 9, 18, 11, 12, 13, 14, 15, 16, 17, 10, 19, 28, 21, 22, 23, 24, 25, 26, 27, 20, 29, 38, 31, 32, 33, 34, 35, 36, 37, 30, 39, 48, 41, 42, 43, 44, 45, 46, 47, 40, 49, 58, 51, 52, 53, 54, 55, 56, 57, 50, 59, 68, 61, 62, 63, 64, 65, 66, 67, 60, 69, 78, 71, 72, 73, 74, 75 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
The map which is applied to primes in A171041.
LINKS
MATHEMATICA
a[n_]:= IntegerDigits[n]/.{0->8, 8->0}//FromDigits; Table[a[n], {n, 0, 80}] (* Vincenzo Librandi, Jul 29 2013 *)
PROG
(PARI) A222217(n, d=[8, 1, 2, 3, 4, 5, 6, 7, 0, 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)
CROSSREFS
Sequence in context: A179050 A176458 A355708 * A105473 A010518 A303321
KEYWORD
nonn,easy,base
AUTHOR
M. F. Hasler, Feb 12 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 02:12 EDT 2024. Contains 371782 sequences. (Running on oeis4.)