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.

A319724 Write n in 7-ary, sort digits into decreasing order.

This page as a plain text file.
%I A319724 #16 Aug 07 2024 10:34:41
%S A319724 0,1,2,3,4,5,6,7,8,15,22,29,36,43,14,15,16,23,30,37,44,21,22,23,24,31,
%T A319724 38,45,28,29,30,31,32,39,46,35,36,37,38,39,40,47,42,43,44,45,46,47,48,
%U A319724 49,56,105,154,203,252,301,56,57,106,155,204,253,302,105,106,113,162
%N A319724 Write n in 7-ary, sort digits into decreasing order.
%H A319724 Seiichi Manyama, <a href="/A319724/b319724.txt">Table of n, a(n) for n = 0..2400</a>
%F A319724 n <= a(n) < 7n. - _Charles R Greathouse IV_, Aug 07 2024
%t A319724 Table[FromDigits[ReverseSort[IntegerDigits[n, 7]], 7], {n, 0, 100}] (* _Paolo Xausa_, Aug 07 2024 *)
%o A319724 (Ruby)
%o A319724 def A(k, n)
%o A319724   (0..n).map{|i| i.to_s(k).split('').sort.reverse.join.to_i(k)}
%o A319724 end
%o A319724 p A(7, 100)
%o A319724 (PARI) a(n) = fromdigits(vecsort(digits(n, 7), , 4), 7); \\ _Michel Marcus_, Sep 26 2018
%Y A319724 b-ary: A073138 (b=2), A319651 (b=3), A319720 (b=4), A319722 (b=5), A319723 (b=6), this sequence (b=7), A319725 (b=8), A319726 (b=9), A004186 (b=10).
%Y A319724 Cf. A165071, A319655.
%K A319724 nonn,base,look,easy
%O A319724 0,3
%A A319724 _Seiichi Manyama_, Sep 26 2018