0, 1, 1, 2, 1, 3, 1, 4, 2, 3, 1, 5, 1, 3, 3, 6, 1, 7, 1, 5, 3, 3, 1, 8, 2, 3, 4, 5, 1, 9, 1, 10, 3, 3, 3, 11, 1, 3, 3, 8, 1, 9, 1, 5, 5, 3, 1, 12, 2, 7, 3, 5, 1, 13, 3, 8, 3, 3, 1, 14, 1, 3, 5, 15, 3, 9, 1, 5, 3, 9, 1, 16, 1, 3, 7, 5, 3, 9, 1, 12, 6, 3, 1, 14, 3, 3, 3, 8, 1, 17, 3, 5, 3, 3, 3, 18, 1, 7, 5, 11, 1, 9, 1, 8, 9
Offset: 1
A139393
a(n) = Sum_{i=1..m} e(i) * 10^(m-i) where e(1) <= ... <= e(m) are the nonzero exponents in the prime factorization of n: a representation of the prime signature of n.
Original entry on oeis.org
0, 1, 1, 2, 1, 11, 1, 3, 2, 11, 1, 12, 1, 11, 11, 4, 1, 12, 1, 12, 11, 11, 1, 13, 2, 11, 3, 12, 1, 111, 1, 5, 11, 11, 11, 22, 1, 11, 11, 13, 1, 111, 1, 12, 12, 11, 1, 14, 2, 12, 11, 12, 1, 13, 11, 13, 11, 11, 1, 112, 1, 11, 12, 6, 11, 111, 1, 12, 11, 111, 1, 23, 1, 11, 12, 12, 11, 111
Offset: 1
A282354
Positive j such that d(j) = d(j + 2*d(j)), where d(j) is the number of divisors of j.
Original entry on oeis.org
3, 6, 7, 13, 14, 19, 20, 24, 26, 27, 32, 37, 38, 40, 43, 54, 57, 60, 63, 67, 69, 72, 74, 77, 79, 84, 85, 86, 87, 88, 97, 103, 108, 109, 111, 114, 115, 125, 126, 127, 132, 133, 134, 136, 138, 154, 158, 163, 170, 174, 177, 193, 194, 200, 201, 204, 205, 206, 209
Offset: 1
A320390
Prime signature of n (sorted in decreasing order), concatenated.
Original entry on oeis.org
0, 1, 1, 2, 1, 11, 1, 3, 2, 11, 1, 21, 1, 11, 11, 4, 1, 21, 1, 21, 11, 11, 1, 31, 2, 11, 3, 21, 1, 111, 1, 5, 11, 11, 11, 22, 1, 11, 11, 31, 1, 111, 1, 21, 21, 11, 1, 41, 2, 21, 11, 21, 1, 31, 11, 31, 11, 11, 1, 211, 1, 11, 21, 6, 11, 111, 1, 21, 11, 111, 1
Offset: 1
For n = 1, the prime signature is the empty sequence, so the concatenation of its terms yields 0 by convention.
For n = 2 = 2^1, n = 3 = 3^1 and any prime p = p^1, the prime signature is (1), and concatenation yields a(n) = 1.
For n = 4 = 2^2, the prime signature is (2), and concatenation yields a(n) = 2.
For n = 6 = 2^1 * 3^1, the prime signature is (1,1), and concatenation yields a(n) = 11.
For n = 12 = 2^2 * 3^1 but also n = 18 = 2^1 * 3^2, the prime signature is (2,1) since exponents are sorted in decreasing order; concatenation yields a(n) = 21.
For n = 30 = 2^1 * 3^1 * 5^1, the prime signature is (1,1,1), and concatenation yields a(n) = 111.
For n = 3072 = 2^10 * 3^1, the prime signature is (10,1), and concatenation yields a(n) = 101. This is the first term with nondecreasing digits.
-
{0}~Join~Array[FromDigits@ Flatten[IntegerDigits /@ FactorInteger[#][[All, -1]] ] &, 78, 2] (* Michael De Vlieger, Oct 13 2018 *)
-
a(n)=fromdigits(vecsort(factor(n)[,2]~,,4)) \\ Except for multiples of 2^10, 3^10, etc.
-
a(n)=eval(concat(apply(t->Str(t),vecsort(factor(n)[,2]~,,4)))) \\ Slower but correct for all n.
A329025
If n = Product (p_j^k_j) then a(n) = concatenation (pi(p_j)), where pi = A000720.
Original entry on oeis.org
0, 1, 2, 1, 3, 12, 4, 1, 2, 13, 5, 12, 6, 14, 23, 1, 7, 12, 8, 13, 24, 15, 9, 12, 3, 16, 2, 14, 10, 123, 11, 1, 25, 17, 34, 12, 12, 18, 26, 13, 13, 124, 14, 15, 23, 19, 15, 12, 4, 13, 27, 16, 16, 12, 35, 14, 28, 110, 17, 123, 18, 111, 24, 1, 36, 125, 19, 17, 29, 134
Offset: 1
a(60) = a(2^2 * 3 * 5) = a(prime(1)^2 * prime(2) * prime(3)) = 123.
-
a[n_] := FromDigits[Flatten@IntegerDigits@(PrimePi[#[[1]]] & /@ FactorInteger[n])]; Table[a[n], {n, 1, 70}]
A227815
Composite numbers n divisible by their concatenated exponents in prime factorization.
Original entry on oeis.org
4, 16, 22, 27, 33, 55, 63, 77, 143, 187, 209, 222, 248, 253, 256, 319, 341, 407, 451, 473, 484, 517, 555, 583, 649, 656, 671, 737, 777, 781, 803, 837, 869, 913, 979, 1067, 1111, 1133, 1152, 1177, 1199, 1221, 1243, 1397, 1441, 1443, 1507, 1529, 1639, 1661, 1727
Offset: 1
248 = 2^3*31 => 31 is the concatenate exponents 3 and 1, so 31 divides 248.
-
with(numtheory):for n from 1 to 10000 do:x:=ifactors(n):y:=x[2];n1:=nops(y):s:=0:for i from 1 to n1 do:z:=y[i][2]:s:=s+z*10^(n1-i):od:if type(n,prime)=false and irem(n,s)=0 then printf(`%d, `, n):else fi:od:
-
With[{predicate = And[CompositeQ[#], Divisible[#, FromDigits[Join @@ IntegerDigits@(Last /@ FactorInteger[#])]]] &},
Select[Range[10000], predicate]] (* Sidney Cadot, Feb 19 2023 *)
-
from sympy import isprime, factorint
def ok(n): return n > 1 and not isprime(n) and n%int("".join(str(e) for e in factorint(n).values())) == 0
print([k for k in range(1728) if ok(k)]) # Michael S. Branicky, Feb 19 2023
Comments