A366347 a(n) has as many prime factors as the ternary expansion of n has runs of nonzero digits; if the k-th run corresponds to A032924(e) and appears after m-1 0's then the p-adic valuation of a(n) is e (where p corresponds to the m-th prime number).
1, 2, 4, 3, 8, 16, 9, 32, 64, 5, 6, 12, 27, 128, 256, 81, 512, 1024, 25, 18, 36, 243, 2048, 4096, 729, 8192, 16384, 7, 10, 20, 15, 24, 48, 45, 96, 192, 125, 54, 108, 2187, 32768, 65536, 6561, 131072, 262144, 625, 162, 324, 19683, 524288, 1048576, 59049
Offset: 0
Examples
For n = 46: the ternary expansion of 46 is "1201; we have two runs of nonzero digits: "12" (= 5 = A032924(4)) after 2-1 0's and "1" (= 1 = A032924(1)) after 1-1 0's; so a(46) = prime(2)^4 * prime(1)^1 = 3^4 * 2^1 = 162.
Links
Programs
-
PARI
See Links section.
Comments