login
A109846
Absolute difference between n and its 9's complement.
0
9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 79, 77, 75, 73, 71, 69, 67, 65, 63, 61, 59, 57, 55, 53, 51, 49, 47, 45, 43, 41, 39, 37, 35, 33, 31, 29, 27, 25, 23, 21, 19, 17, 15, 13, 11, 9, 7, 5, 3, 1, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53
OFFSET
0,1
MATHEMATICA
a[n_]:=Abs[n-(10^IntegerLength[n]-1-n)]; Join[{9}, Array[a, 76]] (* Stefano Spezia, Nov 30 2023 *)
CROSSREFS
Sequence in context: A232735 A191760 A237841 * A096230 A114433 A222129
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Jul 06 2005
EXTENSIONS
More terms from Joshua Zucker, May 03 2006
Offset changed by Georg Fischer, Nov 30 2023
STATUS
approved