login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A319655 Write n in 7-ary, sort digits into increasing order. 9

%I #19 Sep 27 2018 02:36:29

%S 0,1,2,3,4,5,6,1,8,9,10,11,12,13,2,9,16,17,18,19,20,3,10,17,24,25,26,

%T 27,4,11,18,25,32,33,34,5,12,19,26,33,40,41,6,13,20,27,34,41,48,1,8,9,

%U 10,11,12,13,8,57,58,59,60,61,62,9,58,65,66,67,68,69,10,59,66,73

%N Write n in 7-ary, sort digits into increasing order.

%H Seiichi Manyama, <a href="/A319655/b319655.txt">Table of n, a(n) for n = 0..2400</a>

%o (Ruby)

%o def A(k, n)

%o (0..n).map{|i| i.to_s(k).split('').sort.join.to_i(k)}

%o end

%o p A(7, 100)

%o (PARI) a(n) = fromdigits(vecsort(digits(n, 7)), 7); \\ _Michel Marcus_, Sep 25 2018

%Y b-ary: A038573 (b=2), A038574 (b=3), A319652 (b=4), A319653 (b=5), A319654 (b=6), this sequence (b=7), A319656 (b=8), A319657 (b=9), A004185 (b=10).

%Y Cf. A165071, A319724.

%K nonn,base,look

%O 0,3

%A _Seiichi Manyama_, Sep 25 2018

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 2 15:37 EDT 2024. Contains 372197 sequences. (Running on oeis4.)