The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A143473 Replace the leading digit d of n with 10-d (in decimal representation). 2
10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 30, 31 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(n) = n iff A000030(n) = 5, cf. A217398.
LINKS
FORMULA
A000030(a(n)) = 10 - A000030(n).
MATHEMATICA
ld10[n_]:=Module[{idn=IntegerDigits[n]}, FromDigits[Join[{10-idn[[1]]}, Rest[ idn]]]]; Array[ld10, 100, 0] (* Harvey P. Dale, May 25 2020 *)
PROG
(Haskell)
a143473 n = foldl (\v d -> 10 * v + d) 0 $ (10 - z) : zs where
(z:zs) = map (read . return) $ show n
CROSSREFS
Sequence in context: A052036 A304622 A178914 * A055121 A249591 A132674
KEYWORD
nonn,base,look
AUTHOR
Reinhard Zumkeller, Aug 18 2008
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 May 18 23:43 EDT 2024. Contains 372666 sequences. (Running on oeis4.)