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).
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..9999
Garth Kemerling, Philosophy Pages: Immediate Inferences.
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
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Jan 24 2016
EXTENSIONS
More terms from Alois P. Heinz, Jan 24 2016
STATUS
approved