This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A055126 #16 Mar 31 2017 22:20:11 %S A055126 0,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,240,255,254,253,252,251,250, %T A055126 249,248,247,246,245,244,243,242,241,224,239,238,237,236,235,234,233, %U A055126 232,231,230,229,228,227,226,225,208,223,222,221,220,219,218,217,216,215 %N A055126 Base-16 complement of n (write n in base 16, then replace each digit with its base-16 negative). %H A055126 Reinhard Zumkeller, <a href="/A055126/b055126.txt">Table of n, a(n) for n = 0..4095</a> (4095 = 16^3 - 1) %H A055126 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a> %o A055126 (Haskell) %o A055126 a055126 0 = 0 %o A055126 a055126 n = if d == 0 then 16 * a055126 n' else 16 * a055126 n' + 16 - d %o A055126 where (n', d) = divMod n 16 %o A055126 -- _Reinhard Zumkeller_, Mar 12 2014 %Y A055126 Cf. A004488, A048647, A055115-A055126. %Y A055126 Column k=16 of A248813. %K A055126 base,easy,nonn,look %O A055126 0,2 %A A055126 _Henry Bottomley_, Apr 19 2000