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 A336956 #10 Aug 11 2020 01:25:35 %S A336956 0,1,2,3,4,5,6,7,8,9,10,11,21,31,41,51,61,71,81,91,20,12,22,32,42,52, %T A336956 62,72,82,92,30,13,23,33,43,53,63,73,83,93,40,14,24,34,44,54,64,74,84, %U A336956 94,50,15,25,35,45,55,65,75,85,95,60,16,26,36,46,56,66,76 %N A336956 For any number n whose set of nonzero decimal digits is { d_0, ..., d_k } (with d_0 < ... < d_k), a(n) is obtained by replacing in the decimal representation of n each nonzero digit d_m by d_{k-m} for m = 0..k. %C A336956 This sequence is a self-inverse permutation of nonnegative integers. %C A336956 This sequence first differs from A321474 for n = 112: a(112) = 221 whereas A321474(112) = 211. %C A336956 This sequence has similarities with A166166; here we consider nonzero decimal digits, there binary run-lengths. %H A336956 Rémy Sigrist, <a href="/A336956/b336956.txt">Table of n, a(n) for n = 0..10000</a> %H A336956 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a> %F A336956 a(n) = n iff n = 0 or n belongs to A125289. %e A336956 For n = 10251: %e A336956 - the set of nonzero digits is { 1, 2, 5}, %e A336956 - so we replace each digit 1, 2, 5 respectively by 5, 2, 1, %e A336956 - and a(10251) = 50215. %o A336956 (PARI) a(n, base=10) = { my (d=digits(n, base), s=Set(select(sign, d))); fromdigits(apply (t -> if (t, s[#s+1-setsearch (s,t)], 0), d), base) } %Y A336956 Cf. A125289, A166166, A321474. %K A336956 nonn,base %O A336956 0,3 %A A336956 _Rémy Sigrist_, Aug 09 2020