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!)
A321540 3^n with digits rearranged into nondecreasing order. 14
1, 3, 9, 27, 18, 234, 279, 1278, 1566, 13689, 4599, 114777, 113445, 1233459, 2467899, 1344789, 1234467, 11123469, 23447889, 1112246667, 134446788, 12333456, 113356899, 11234477889, 122234456889, 23444678889, 1222345568889, 2445567778899 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = A004185(A000244(n)). - Michel Marcus, Nov 10 2022
MATHEMATICA
Table[FromDigits[Sort[IntegerDigits[3^n]]], {n, 0, 40}] (* Vincenzo Librandi, Jan 22 2020 *)
PROG
(Magma) [Seqint(Reverse(Sort(Intseq(3^n)))):n in [0..35]]; // Vincenzo Librandi, Jan 22 2020
(Python)
def A321540(n): return int(''.join(sorted(str(3**n)))) # Chai Wah Wu, Nov 10 2022
CROSSREFS
The following are parallel families: A000079 (2^n), A004094 (2^n reversed), A028909 (2^n sorted up), A028910 (2^n sorted down), A036447 (double and reverse), A057615 (double and sort up), A263451 (double and sort down); A000244 (3^n), A004167 (3^n reversed), A321540 (3^n sorted up), A321539 (3^n sorted down), A163632 (triple and reverse), A321542 (triple and sort up), A321541 (triple and sort down).
Cf. A004185.
Sequence in context: A122842 A070358 A321542 * A036123 A168427 A070344
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Nov 19 2018
STATUS
approved

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 April 27 15:06 EDT 2024. Contains 372019 sequences. (Running on oeis4.)