Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #8 Nov 17 2024 07:24:05
%S 2,15,99,722,8410,123813,2177847,44317852,1023457869,26432595075,
%T 754777789018,23609224082310,802772380561983,29480883458980947,
%U 1162849439785414095,49030176097150565512,2200618769387073010719,104753196945250864019109,5271200265927977839358758
%N a(n) is the (n-1)-th positive integer that is digitally balanced in base n.
%H Paolo Xausa, <a href="/A378001/b378001.txt">Table of n, a(n) for n = 2..300</a>
%F a(n) = A378000(n, n-1).
%t Quiet[Needs["Combinatorica`"]];
%t A378001[n_] := FromDigits[UnrankPermutation[(n - 1)! + n - 2, Range[0, n - 1]], n];
%t Array[A378001, 20, 2]
%Y Main diagonal of A378000.
%K nonn,base
%O 2,1
%A _Paolo Xausa_, Nov 14 2024