cp's OEIS Frontend

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.

A342707 T(n, k) is the result of replacing 2's by k's in the hereditary base-2 expansion of n; square array T(n, k) read by antidiagonals upwards, n, k >= 0.

This page as a plain text file.
%I A342707 #12 Jun 07 2021 14:54:46
%S A342707 0,1,0,0,1,0,1,1,1,0,1,2,2,1,0,2,1,3,3,1,0,1,2,4,4,4,1,0,2,2,5,27,5,5,
%T A342707 1,0,0,3,6,28,256,6,6,1,0,1,1,7,30,257,3125,7,7,1,0,0,2,8,31,260,3126,
%U A342707 46656,8,8,1,0,1,2,9,81,261,3130,46657,823543,9,9,1,0
%N A342707 T(n, k) is the result of replacing 2's by k's in the hereditary base-2 expansion of n; square array T(n, k) read by antidiagonals upwards, n, k >= 0.
%H A342707 Wikipedia, <a href="https://en.wikipedia.org/wiki/Goodstein&#39;s_theorem#Hereditary_base-n_notation">Hereditary base-n notation</a>
%F A342707 T(n, n) = A343255(n).
%F A342707 T(n, 0) = A345021(n).
%F A342707 T(n, 1) = A000120(n).
%F A342707 T(n, 2) = n.
%F A342707 T(n, 3) = A222112(n-1).
%F A342707 T(0, k) = 0.
%F A342707 T(1, k) = 1.
%F A342707 T(2, k) = k.
%F A342707 T(3, k) = k + 1.
%F A342707 T(4, k) = k^k = A000312(k).
%F A342707 T(5, k) = k^k + 1 = A014566(k).
%F A342707 T(6, k) = k^k + k = A066068(k).
%F A342707 T(7, k) = k^k + k + 1 = A066279(k).
%F A342707 T(16, k) = k^k^k = A002488(k).
%F A342707 T(m + n, k) = T(m, k) + T(n, k) when m AND n = 0 (where AND denotes the bitwise AND operator).
%e A342707 Array T(n, k) begins:
%e A342707   n\k|  0  1   2   3     4      5       6        7          8           9
%e A342707   ---+-------------------------------------------------------------------
%e A342707     0|  0  0   0   0     0      0       0        0          0           0
%e A342707     1|  1  1   1   1     1      1       1        1          1           1
%e A342707     2|  0  1   2   3     4      5       6        7          8           9
%e A342707     3|  1  2   3   4     5      6       7        8          9          10
%e A342707     4|  1  1   4  27   256   3125   46656   823543   16777216   387420489
%e A342707     5|  2  2   5  28   257   3126   46657   823544   16777217   387420490
%e A342707     6|  1  2   6  30   260   3130   46662   823550   16777224   387420498
%e A342707     7|  2  3   7  31   261   3131   46663   823551   16777225   387420499
%e A342707     8|  0  1   8  81  1024  15625  279936  5764801  134217728  3486784401
%e A342707     9|  1  2   9  82  1025  15626  279937  5764802  134217729  3486784402
%e A342707    10|  0  2  10  84  1028  15630  279942  5764808  134217736  3486784410
%o A342707 (PARI) T(n,k) = { my (v=0, e); while (n, n-=2^e=valuation(n,2); v+=k^T(e,k)); v }
%Y A342707 See A341907 for a similar sequence.
%Y A342707 Cf. A000120, A000312, A002488, A014566, A066068, A066279, A222112, A343255, A345021.
%K A342707 nonn,tabl,base
%O A342707 0,12
%A A342707 _Rémy Sigrist_, Jun 04 2021