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 A365396 #12 Oct 06 2023 15:15:15 %S A365396 1,2,3,4,5,6,8,7,9,10,13,11,14,15,21,12,16,17,22,18,23,24,34,19,25,26, %T A365396 35,27,36,37,55,20,28,29,38,30,39,40,56,31,41,42,57,43,58,59,89,32,44, %U A365396 45,60,46,61,62,90,47,63,64,91,65,92,93,144,33,48,49,66 %N A365396 Inverse permutation to A243571. %H A365396 <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a> %F A365396 a(n) = A000045(b(n) + 1) + Sum_{i=1..A000523(n)} binomial(i-1, b(n) - i) + Sum_{j=1..A000120(n) - 1} binomial(A133457(n, j), j) where b(n) = A056792(n). %o A365396 (PARI) a(n) = my(L = logint(n, 2), wt = hammingweight(n), A = L + wt, m = 0); fibonacci(A+1) + sum(i=1, L, binomial(i-1, A-i)) + sum(j=0, L-1, if(bittest(n, j), m++; binomial(j, m))) %Y A365396 Cf. A000045, A000120, A000523, A056792, A133457, A243571. %K A365396 nonn %O A365396 1,2 %A A365396 _Alexander Khudyakov_, Sep 03 2023