login
A267193
Complement obverse of n.
10
9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 98, 88, 78, 68, 58, 48, 38, 28, 18, 8, 97, 87, 77, 67, 57, 47, 37, 27, 17, 7, 96, 86, 76, 66, 56, 46, 36, 26, 16, 6, 95, 85, 75, 65, 55, 45, 35, 25, 15, 5, 94, 84, 74, 64, 54, 44, 34, 24, 14, 4, 93, 83, 73, 63, 53, 43, 33, 23, 13
OFFSET
0,1
COMMENTS
Replace digits of n by their 9's complements, reverse the order, omit any leading zeros.
Suggested by a posting by Mike Stay to the Math Fun Mailing List, Jan 24 2016, which in turn was loosely based on the definition used in logic (see the Philosophy Pages link).
EXAMPLE
The 9's complement of the digits of 980 are 019, so a(980) = 910.
MAPLE
a:= n-> (s-> parse(cat(seq(9-s[i], i=1..nops(s))))
)(convert(n, base, 10)):
seq(a(n), n=0..100); # Alois P. Heinz, Jan 24 2016
CROSSREFS
Cf. A061601 (9's complement of n).
Sequence in context: A084019 A061601 A098756 * A112454 A304621 A138531
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Jan 24 2016
EXTENSIONS
More terms from Alois P. Heinz, Jan 24 2016
STATUS
approved