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!)
A222247 In the number n, replace all (decimal) digits '5' with '8' and vice versa. 1
0, 1, 2, 3, 4, 8, 6, 7, 5, 9, 10, 11, 12, 13, 14, 18, 16, 17, 15, 19, 20, 21, 22, 23, 24, 28, 26, 27, 25, 29, 30, 31, 32, 33, 34, 38, 36, 37, 35, 39, 40, 41, 42, 43, 44, 48, 46, 47, 45, 49, 80, 81, 82, 83, 84, 88, 86, 87, 85, 89, 60, 61, 62, 63, 64, 68, 66, 67, 65, 69, 70, 71, 72, 73, 74, 78 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
The map which is applied to primes in A171046.
LINKS
MATHEMATICA
a[n_]:= IntegerDigits[n]/.{5->8, 8->5} // FromDigits; Table[a[n], {n, 0, 80}] (* Vincenzo Librandi, Jul 31 2013 *)
PROG
(PARI) A222247(n, d=[0, 1, 2, 3, 4, 8, 6, 7, 5, 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: A326487 A253562 A355858 * A338242 A353827 A353826
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler, Feb 13 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 24 15:37 EDT 2024. Contains 371960 sequences. (Running on oeis4.)