OFFSET
0,3
COMMENTS
LINKS
FORMULA
a(n) = n if n < 10, otherwise 10*a(floor(n/10)) + 9 - n mod 10; a self-inverse permutation of the natural numbers, A115310(n+8, 9) = a(n) for n > 0. - Reinhard Zumkeller, Jan 20 2006 [corrected by Georg Fischer, Jun 23 2024]
a(n) = A305238(n-9) for 10 <= n <= 99. - M. F. Hasler, Oct 16 2018
MATHEMATICA
a[n_]:=FromDigits[Flatten[{IntegerDigits[n][[1]], Map[9-#&, Drop[IntegerDigits[n], 1]]}]]; Table[a[n], {n, 0, 100}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, May 12 2005
STATUS
approved