A055959 n - reversal of base 9 digits of n (written in base 10).
0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, -8, -16, -24, -32, -40, -48, -56, 16, 8, 0, -8, -16, -24, -32, -40, -48, 24, 16, 8, 0, -8, -16, -24, -32, -40, 32, 24, 16, 8, 0, -8, -16, -24, -32, 40, 32, 24, 16, 8, 0, -8, -16, -24, 48, 40, 32, 24, 16, 8, 0, -8, -16, 56, 48, 40, 32, 24, 16, 8, 0, -8, 64, 56, 48, 40, 32, 24, 16, 8, 0, 80, 0, -80, -160
Offset: 0
Programs
-
Mathematica
Table[n-FromDigits[Reverse[IntegerDigits[n,9]],9],{n,0,120}] (* Harvey P. Dale, Dec 17 2022 *)
Formula
a(n) = n - A030108(n).
Comments