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.

Showing 1-10 of 11 results. Next

A131801 Increment each prime factor for each term of the least prime sequence A087443.

Original entry on oeis.org

1, 3, 9, 15, 27, 45, 105, 81, 135, 225, 315, 1155, 243, 405, 675, 945, 1575, 3465, 15015, 729, 1215, 2025, 3375, 2835, 4725, 10395, 11025, 17325, 45045, 255255, 2187, 3645, 6075, 10125, 8505, 14175, 23625, 31185, 33075, 51975, 121275, 135135, 225225
Offset: 0

Views

Author

Alford Arnold, Jul 16 2007

Keywords

Examples

			The term 30 = 2*3*5
becomes 105 = 3*5*7
A087443 begins
1
2
4...6
8...12...30
16
etc
so a(n) begins
1
3
9...15
27..45..105
81
etc
		

Crossrefs

Cf. A025487.
Cf. A131822.

Formula

T(n,k) = A003961[A087443(n,k)]. - R. J. Mathar, Aug 01 2007

Extensions

More terms from R. J. Mathar, Aug 01 2007

A025487 Least integer of each prime signature A124832; also products of primorial numbers A002110.

Original entry on oeis.org

1, 2, 4, 6, 8, 12, 16, 24, 30, 32, 36, 48, 60, 64, 72, 96, 120, 128, 144, 180, 192, 210, 216, 240, 256, 288, 360, 384, 420, 432, 480, 512, 576, 720, 768, 840, 864, 900, 960, 1024, 1080, 1152, 1260, 1296, 1440, 1536, 1680, 1728, 1800, 1920, 2048, 2160, 2304, 2310
Offset: 1

Views

Author

Keywords

Comments

All numbers of the form 2^k1*3^k2*...*p_n^k_n, where k1 >= k2 >= ... >= k_n, sorted.
A111059 is a subsequence. - Reinhard Zumkeller, Jul 05 2010
Choie et al. (2007) call these "Hardy-Ramanujan integers". - Jean-François Alcover, Aug 14 2014
The exponents k1, k2, ... can be read off Abramowitz & Stegun p. 831, column labeled "pi".
For all such sequences b for which it holds that b(n) = b(A046523(n)), the sequence which gives the indices of records in b is a subsequence of this sequence. For example, A002182 which gives the indices of records for A000005, A002110 which gives them for A001221 and A000079 which gives them for A001222. - Antti Karttunen, Jan 18 2019
The prime signature corresponding to a(n) is given in row n of A124832. - M. F. Hasler, Jul 17 2019

Examples

			The first few terms are 1, 2, 2^2, 2*3, 2^3, 2^2*3, 2^4, 2^3*3, 2*3*5, ...
		

Crossrefs

Subsequence of A055932, A191743, and A324583.
Cf. A085089, A101296 (left inverses).
Equals range of values taken by A046523.
Cf. A178799 (first differences), A247451 (squarefree kernel), A146288 (number of divisors).
Rearrangements of this sequence include A036035, A059901, A063008, A077569, A085988, A086141, A087443, A108951, A181821, A181822, A322827, A329886, A329887.
Cf. also array A124832 (row n = prime signature of a(n)) and A304886, A307056.

Programs

  • Haskell
    import Data.Set (singleton, fromList, deleteFindMin, union)
    a025487 n = a025487_list !! (n-1)
    a025487_list = 1 : h [b] (singleton b) bs where
       (_ : b : bs) = a002110_list
       h cs s xs'@(x:xs)
         | m <= x    = m : h (m:cs) (s' `union` fromList (map (* m) cs)) xs'
         | otherwise = x : h (x:cs) (s  `union` fromList (map (* x) (x:cs))) xs
         where (m, s') = deleteFindMin s
    -- Reinhard Zumkeller, Apr 06 2013
    
  • Maple
    isA025487 := proc(n)
        local pset,omega ;
        pset := sort(convert(numtheory[factorset](n),list)) ;
        omega := nops(pset) ;
        if op(-1,pset) <> ithprime(omega) then
            return false;
        end if;
        for i from 1 to omega-1 do
            if padic[ordp](n,ithprime(i)) < padic[ordp](n,ithprime(i+1)) then
                return false;
            end if;
        end do:
        true ;
    end proc:
    A025487 := proc(n)
        option remember ;
        local a;
        if n = 1 then
            1 ;
        else
            for a from procname(n-1)+1 do
                if isA025487(a) then
                    return a;
                end if;
            end do:
        end if;
    end proc:
    seq(A025487(n),n=1..100) ; # R. J. Mathar, May 25 2017
  • Mathematica
    PrimeExponents[n_] := Last /@ FactorInteger[n]; lpe = {}; ln = {1}; Do[pe = Sort@PrimeExponents@n; If[ FreeQ[lpe, pe], AppendTo[lpe, pe]; AppendTo[ln, n]], {n, 2, 2350}]; ln (* Robert G. Wilson v, Aug 14 2004 *)
    (* Second program: generate all terms m <= A002110(n): *)
    f[n_] := {{1}}~Join~
      Block[{lim = Product[Prime@ i, {i, n}],
       ww = NestList[Append[#, 1] &, {1}, n - 1], dec},
       dec[x_] := Apply[Times, MapIndexed[Prime[First@ #2]^#1 &, x]];
       Map[Block[{w = #, k = 1},
          Sort@ Prepend[If[Length@ # == 0, #, #[[1]]],
            Product[Prime@ i, {i, Length@ w}] ] &@ Reap[
             Do[
              If[# < lim,
                 Sow[#]; k = 1,
                 If[k >= Length@ w, Break[], k++]] &@ dec@ Set[w,
                 If[k == 1,
                   MapAt[# + 1 &, w, k],
                   PadLeft[#, Length@ w, First@ #] &@
                     Drop[MapAt[# + Boole[i > 1] &, w, k], k - 1] ]],
               {i, Infinity}] ][[-1]]
    ] &, ww]]; Sort[Join @@ f@ 13] (* Michael De Vlieger, May 19 2018 *)
  • PARI
    isA025487(n)=my(k=valuation(n,2),t);n>>=k;forprime(p=3,default(primelimit),t=valuation(n,p);if(t>k,return(0),k=t);if(k,n/=p^k,return(n==1))) \\ Charles R Greathouse IV, Jun 10 2011
    
  • PARI
    factfollow(n)={local(fm, np, n2);
      fm=factor(n); np=matsize(fm)[1];
      if(np==0,return([2]));
      n2=n*nextprime(fm[np,1]+1);
      if(np==1||fm[np,2]Franklin T. Adams-Watters, Dec 01 2011 */
    
  • PARI
    is(n) = {if(n==1, return(1)); my(f = factor(n));  f[#f~, 1] == prime(#f~) && vecsort(f[, 2],,4) == f[, 2]} \\ David A. Corneth, Feb 14 2019
    
  • PARI
    upto(Nmax)=vecsort(concat(vector(logint(Nmax,2),n,select(t->t<=Nmax,if(n>1,[factorback(primes(#p),Vecrev(p)) || p<-partitions(n)],[1,2]))))) \\ M. F. Hasler, Jul 17 2019
    
  • PARI
    \\ For fast generation of large number of terms, use this program:
    A283980(n) = {my(f=factor(n)); prod(i=1, #f~, my(p=f[i, 1], e=f[i, 2]); if(p==2, 6, nextprime(p+1))^e)}; \\ From A283980
    A025487list(e) = { my(lista = List([1, 2]), i=2, u = 2^e, t); while(lista[i] != u, if(2*lista[i] <= u, listput(lista,2*lista[i]); t = A283980(lista[i]); if(t <= u, listput(lista,t))); i++); vecsort(Vec(lista)); }; \\ Returns a list of terms up to the term 2^e.
    v025487 = A025487list(101);
    A025487(n) = v025487[n];
    for(n=1,#v025487,print1(A025487(n), ", ")); \\ Antti Karttunen, Dec 24 2019
    
  • Sage
    def sharp_primorial(n): return sloane.A002110(prime_pi(n))
    N = 2310
    nmax = 2^floor(log(N,2))
    sorted([j for j in (prod(sharp_primorial(t[0])^t[1] for k, t in enumerate(factor(n))) for n in (1..nmax)) if j <= N])
    # Giuseppe Coppoletta, Jan 26 2015

Formula

What can be said about the asymptotic behavior of this sequence? - Franklin T. Adams-Watters, Jan 06 2010
Hardy & Ramanujan prove that there are exp((2 Pi + o(1))/sqrt(3) * sqrt(log x/log log x)) members of this sequence up to x. - Charles R Greathouse IV, Dec 05 2012
From Antti Karttunen, Jan 18 & Dec 24 2019: (Start)
A085089(a(n)) = n.
A101296(a(n)) = n [which is the first occurrence of n in A101296, and thus also a record.]
A001221(a(n)) = A061395(a(n)) = A061394(n).
A007814(a(n)) = A051903(a(n)) = A051282(n).
a(A101296(n)) = A046523(n).
a(A306802(n)) = A002182(n).
a(n) = A108951(A181815(n)) = A329900(A181817(n)).
If A181815(n) is odd, a(n) = A283980(a(A329904(n))), otherwise a(n) = 2*a(A329904(n)).
(End)
Sum_{n>=1} 1/a(n) = Product_{n>=1} 1/(1 - 1/A002110(n)) = A161360. - Amiram Eldar, Oct 20 2020

Extensions

Offset corrected by Matthew Vandermast, Oct 19 2008
Minor correction by Charles R Greathouse IV, Sep 03 2010

A181821 a(n) = smallest integer with factorization as Product p(i)^e(i) such that Product p(e(i)) = n.

Original entry on oeis.org

1, 2, 4, 6, 8, 12, 16, 30, 36, 24, 32, 60, 64, 48, 72, 210, 128, 180, 256, 120, 144, 96, 512, 420, 216, 192, 900, 240, 1024, 360, 2048, 2310, 288, 384, 432, 1260, 4096, 768, 576, 840, 8192, 720, 16384, 480, 1800, 1536, 32768, 4620, 1296, 1080, 1152, 960, 65536
Offset: 1

Views

Author

Matthew Vandermast, Dec 07 2010

Keywords

Comments

A permutation of A025487. a(n) is the member m of A025487 such that A181819(m) = n. a(n) is also the member of A025487 whose prime signature is conjugate to the prime signature of A108951(n).
If n = Product_i prime(e(i)) with the e(i) weakly decreasing, then a(n) = Product_i prime(i)^e(i). For example, 90 = prime(3) * prime(2) * prime(2) * prime(1), so a(90) = prime(1)^3 * prime(2)^2 * prime(3)^2 * prime(4)^1 = 12600. - Gus Wiseman, Jan 02 2019

Examples

			The canonical factorization of 24 is 2^3*3^1. Therefore, p(e(i)) = prime(3)*prime(1)(i.e., A000040(3)*A000040(1)), which equals 5*2 = 10. Since 24 is the smallest integer for which p(e(i)) = 10, a(10) = 24.
		

Crossrefs

Programs

  • Maple
    a:= n-> (l-> mul(ithprime(i)^l[i], i=1..nops(l)))(sort(map(i->
                 numtheory[pi](i[1])$i[2], ifactors(n)[2]), `>`)):
    seq(a(n), n=1..70);  # Alois P. Heinz, Sep 05 2018
  • Mathematica
    With[{s = Array[If[# == 1, 1, Times @@ Map[Prime@ Last@ # &, FactorInteger@ #]] &, 2^16]}, Array[First@ FirstPosition[s, #] &, LengthWhile[Differences@ Union@ s, # == 1 &]]] (* Michael De Vlieger, Dec 17 2018 *)
    Table[Times@@MapIndexed[Prime[#2[[1]]]^#1&,Reverse[Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]],{n,30}] (* Gus Wiseman, Jan 02 2019 *)
  • PARI
    A181821(n) = { my(f=factor(n),p=0,m=1); forstep(i=#f~,1,-1,while(f[i,2], f[i,2]--; m *= (p=nextprime(p+1))^primepi(f[i,1]))); (m); }; \\ Antti Karttunen, Dec 10 2018
    
  • Python
    from math import prod
    from sympy import prime, primepi, factorint
    def A181821(n): return prod(prime(i)**e for i, e in enumerate(sorted(map(primepi,factorint(n,multiple=True)),reverse=True),1)) # Chai Wah Wu, Sep 15 2023

Formula

If A108951(n) = Product p(i)^e(i), then a(n) = Product A002110(e(i)). I.e., a(n) = A108951(A181819(A108951(n))).
a(A181819(n)) = A046523(n). - [See also A124859]. Antti Karttunen, Dec 10 2018
a(n) = A025487(A361808(n)). - Pontus von Brömssen, Mar 25 2023
a(n) = A108951(A122111(n)). - Antti Karttunen, Sep 15 2023

Extensions

Definition corrected by Gus Wiseman, Jan 02 2019

A181822 a(n) = member of A025487 whose prime signature is conjugate to the prime signature of A025487(n).

Original entry on oeis.org

1, 2, 6, 4, 30, 12, 210, 60, 8, 2310, 36, 420, 24, 30030, 180, 4620, 120, 510510, 1260, 72, 60060, 16, 900, 840, 9699690, 13860, 360, 1021020, 48, 6300, 9240, 223092870, 180180, 2520, 19399380, 240, 69300, 216, 120120, 6469693230, 1800, 3063060, 144, 44100, 27720, 446185740, 1680, 900900, 1080, 2042040, 200560490130, 12600, 58198140, 32, 720
Offset: 1

Views

Author

Matthew Vandermast, Dec 07 2010

Keywords

Comments

A permutation of the members of A025487.
If integers m and n have conjugate prime signatures, then A001222(m) = A001222(n), A071625(m) = A071625(n), A085082(m) = A085082(n), and A181796(m) = A181796(n).

Examples

			A025487(5) = 8 = 2^3 has a prime signature of (3). The partition that is conjugate to (3) is (1,1,1), and the member of A025487 with that prime signature is 30 = 2*3*5 (or 2^1*3^1*5^1).  Therefore, a(5) = 30.
		

Crossrefs

Other rearrangements of A025487 include A036035, A059901, A063008, A077569, A085988, A086141, A087443, A108951, A181821.
A181825 lists members of A025487 with self-conjugate prime signatures. See also A181823-A181824, A181826-A181827.

Programs

  • Mathematica
    f[n_] := Block[{ww, dec}, dec[x_] := Apply[Times, MapIndexed[Prime[First@ #2]^#1 &, x]]; ww = NestList[Append[#, 1] &, {1}, # - 1] &[-2 + Length@ NestWhileList[NextPrime@ # &, 1, Times @@ {##} <= n &, All] ]; {{{0}}}~Join~Map[Block[{w = #, k = 1}, Sort@ Apply[Join, {{ConstantArray[1, Length@ w]}, If[Length@ # == 0, #, #[[1]]] }] &@ Reap[Do[If[# <= n, Sow[w]; k = 1, If[k >= Length@ w, Break[], k++]] &@ dec@ Set[w, If[k == 1, MapAt[# + 1 &, w, k], PadLeft[#, Length@ w, First@ #] &@ Drop[MapAt[# + Boole[i > 1] &, w, k], k - 1] ]], {i, Infinity}] ][[-1]] ] &, ww]]; Sort[Map[{Times @@ MapIndexed[Prime[First@ #2]^#1 &, #], Times @@ MapIndexed[Prime[First@ #2]^#1 &, Table[LengthWhile[#1, # >= j &], {j, #2}]] & @@ {#, Max[#]}} &, Join @@ f[2310]]][[All, -1]] (* Michael De Vlieger, Oct 16 2018 *)
  • PARI
    partitionConj(v)=vector(v[1],i,sum(j=1,#v,v[j]>=i))
    primeSignature(n)=vecsort(factor(n)[,2]~,,4)
    f(n)=if(n==1, return(1)); my(e=partitionConj(primeSignature(n))~); factorback(concat(Mat(primes(#e)~),e))
    A025487=[2, 4, 6, 8, 12, 16, 24, 30, 32, 36, 48, 60, 64, 72, 96, 120, 128, 144, 180, 192, 210, 216, 240, 256, 288, 360, 384, 420, 432, 480, 512, 576, 720, 768];
    concat(1, apply(f, A025487)) \\ Charles R Greathouse IV, Jun 02 2016

Formula

If A025487(n) = Product p(i)^e(i), then a(n) = Product A002110(e(i)). I.e., a(n) = A108951(A181819(A025487(n))). a(n) also equals A108951(A181820(n)).

A079025 Triangular array read by rows: column sums of frequency distributions associated with number of divisors of least prime signatures.

Original entry on oeis.org

1, 1, 1, 2, 3, 2, 3, 6, 6, 3, 5, 12, 16, 12, 5, 7, 20, 32, 32, 20, 7, 11, 35, 65, 79, 65, 35, 11, 15, 54, 113, 160, 160, 113, 54, 15, 22, 86, 199, 318, 371, 318, 199, 86, 22, 30, 128, 323, 573, 756, 756, 573, 323, 128, 30, 42, 192, 523, 1013, 1485, 1683, 1485, 1013, 523, 192, 42
Offset: 0

Views

Author

Alford Arnold, Feb 01 2003

Keywords

Comments

Row sums of the triangular table is sequence A074141. The left column and the main diagonal are the partition numbers A000041.
T(n,k) is the total number of divisors d of m (counted with multiplicity), such that the prime signature of d is a partition of k and m runs through the set of least numbers whose prime signature is a partition of n. - Alois P. Heinz, Aug 23 2019

Examples

			The seven least integers associated with prime signatures 5, 41, 32, 311, 221, 2111, 11111 (partitions of 5) are 32, 48, 72, 120, 180, 420 and 2310 (see A036035).  The corresponding numbers of divisors 6, 10, 12, 16, 18, 24 and 32 (see A074139) can be refined with the following frequency distributions D(p,s), which counts how many divisors of the entry of A036035 have a sum of prime exponents s, 0<=s<=n:
  1  1  1  1  1 1
  1  2  2  2  2 1
  1  2  3  3  2 1
  1  3  4  4  3 1
  1  3  5  5  3 1
  1  4  7  7  4 1
  1  5 10 10  5 1 , therefore the column sums are:
  7 20 32 32 20 7 , which is row 5 of the triangle.
Triangle T(n,k) begins:
    1
    1   1
    2   3    2
    3   6    6    3
    5  12   16   12    5
    7  20   32   32   20     7
   11  35   65   79   65    35    11
   15  54  113  160  160   113    54    15
   22  86  199  318  371   318   199    86    22
   30 128  323  573  756   756   573   323   128   30
   42 192  523 1013 1485  1683  1485  1013   523  192   42
   56 275  803 1683 2701  3405  3405  2701  1683  803  275   56
   77 399 1237 2776 4822  6662  7413  6662  4822 2776 1237  399  77
  101 556 1826 4366 8144 12205 14901 14901 12205 8144 4366 1826 556 101
  ...
		

Crossrefs

Row sums give A074141.
T(2n,n) gives A309915.

Programs

  • Maple
    A079025 := proc(n,k)
        local psig ,d,a;
        a := 0 ;
        for psig in A036035_row(n) do
            for d in numtheory[divisors](psig) do
                if numtheory[bigomega](d) = k then
                    a := a+1 ;
                end if:
            end do:
        end do:
        a ;
    end proc:
    for n from 0 to 13 do
        for k from 0 to n do
            printf("%d ",A079025(n,k)) ;
        end do:
        printf("\n") ;
    end do: # R. J. Mathar, Aug 28 2018
    # second Maple program:
    b:= proc(n, i) option remember; expand(`if`(n=0 or i=1, (x+1)^n,
          b(n, i-1) +factor((x^(i+1)-1)/(x-1))*b(n-i, min(n-i, i))))
        end:
    T:= n-> (p-> seq(coeff(p, x, i), i=0..n))(b(n$2)):
    seq(T(n), n=0..12);  # Alois P. Heinz, Aug 22 2019
  • Mathematica
    b[n_, i_] := b[n, i] = Expand[If[n == 0 || i == 1, (x + 1)^n, b[n, i - 1] + Factor[(x^(i + 1) - 1)/(x - 1)]*b[n - i, Min[n - i, i]]]];
    T[n_] := Function[p, Table[Coefficient[p, x, i], {i, 0, n}]][b[n, n]];
    Table[T[n], {n, 0, 12}] // Flatten (* Jean-François Alcover, Dec 06 2019, after Alois P. Heinz *)

A322827 A permutation of A025487: Sequence of least representatives of distinct prime signatures obtained from the run lengths present in the binary expansion of n.

Original entry on oeis.org

1, 2, 6, 4, 36, 30, 12, 8, 216, 180, 210, 900, 72, 60, 24, 16, 1296, 1080, 1260, 5400, 44100, 2310, 6300, 27000, 432, 360, 420, 1800, 144, 120, 48, 32, 7776, 6480, 7560, 32400, 264600, 13860, 37800, 162000, 9261000, 485100, 30030, 5336100, 1323000, 69300, 189000, 810000, 2592, 2160, 2520, 10800, 88200, 4620, 12600
Offset: 0

Views

Author

Antti Karttunen, Jan 16 2019

Keywords

Comments

A101296(a(n)) gives a permutation of natural numbers.

Examples

			The sequence can be represented as a binary tree:
                                      1
                                      |
                   ...................2...................
                  6                                       4
       36......../ \........30                 12......../ \........8
       / \                 / \                 / \                 / \
      /   \               /   \               /   \               /   \
     /     \             /     \             /     \             /     \
   216      180         210    900         72       60         24       16
etc.
Both children are multiples of their common parent, see A323503, A323504 and A323507.
The value of a(n) is computed from the binary expansion of n as follows: Starting from the least significant end of the binary expansion of n (A007088), we record the successive run lengths, subtract one from all lengths except the first one, and use the reversed partial sums of these adjusted values as the exponents of successive primes.
For 11, which is "1011" in base 2, we have run lengths [2, 1, 1] when scanned from the right, and when one is subtracted from all except the first, we have [2, 0, 0], partial sums of which is [2, 2, 2], which stays same when reversed, thus a(11) = 2^2 * 3^2 * 5^2 = 900.
For 13, which is "1101" in base 2, we have run lengths [1, 1, 2] when scanned from the right, and when one is subtracted from all except the first, we have [1, 0, 1], partial sums of which is [1, 1, 2], reversed [2, 1, 1], thus a(13) = 2^2 * 3^1 * 5^1 = 60.
Sequence A227183 is based on the same algorithm.
		

Crossrefs

Cf. A000079 (right edge), A000400 (left edge, apart from 2), A005811, A046523, A101296, A227183, A322585, A322825, A323503, A323504, A323507.
Other rearrangements of A025487 include A036035, A059901, A063008, A077569, A085988, A086141, A087443, A108951, A181821, A181822.
Cf. A005940, A283477, A323505 for other similar trees.

Programs

  • Mathematica
    {1}~Join~Array[Times @@ MapIndexed[Prime[First@ #2]^#1 &, Reverse@ Accumulate@ MapIndexed[Length[#1] - Boole[First@ #2 > 1] &, Split@ Reverse@ IntegerDigits[#, 2]]] &, 54] (* Michael De Vlieger, Feb 05 2020 *)
  • PARI
    A322827(n) = if(!n,1,my(bits = Vecrev(binary(n)), rl=1, o = List([])); for(i=2,#bits,if(bits[i]==bits[i-1], rl++, listput(o,rl))); listput(o,rl); my(es=Vecrev(Vec(o)), m=1); for(i=1,#es,m *= prime(i)^es[i]); (m));

Formula

a(n) = A046523(a(n)) = A046523(A322825(n)).
A001221(a(n)) = A005811(n).
A001222(a(n)) = A227183(n).
A322585(a(n)) = 1.

A074140 Sum of least integers of prime signatures over all partitions of n.

Original entry on oeis.org

1, 2, 10, 50, 346, 3182, 38770, 609290, 11226106, 250148582, 7057182250, 216512001950, 7903965900226, 321552174623162, 13779150603234010, 644574260638821590, 33968684108427733426, 1994885097404292104942, 121496572792097514728530, 8114030083731371137603190
Offset: 0

Views

Author

Amarnath Murthy, Aug 28 2002

Keywords

Comments

Old name was: Sum of terms in n-th group in A036035.
a(n) is also the sum of terms in n-th row of A063008, A087443 or A227955.

Examples

			a(6) = 64+96+144+216+240+360+900+840+1260+4620+30030 = 38770.
		

Crossrefs

Programs

  • Maple
    b:= proc(n, i, j) option remember;
          `if`(n=0, 1, `if`(i<1, 0, b(n, i-1, j)+
          `if`(i>n, 0, ithprime(j)^i*b(n-i, i, j+1))))
        end:
    a:= n-> b(n$2, 1):
    seq(a(n), n=0..40);  # Alois P. Heinz, Aug 03 2013
  • Mathematica
    b[n_, i_, j_] := b[n, i, j] = If[n == 0, 1, If[i<1, 0, b[n, i-1, j]+If[i>n, 0, Prime[j]^i*b[n-i, i, j+1]]]]; a[n_] := b[n, n, 1]; Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Feb 25 2014, after Alois P. Heinz *)
  • Sage
    def A074140(n):
        L = []
        P = primes_first_n(n)
        for p in Partitions(n):
            m = mul(P[i]^pi for i, pi in enumerate(p))
            L.append(m)
        return add(L)
    [A074140(n) for n in (0..20)]  # Peter Luschny, Aug 02 2013

Extensions

More terms from Alford Arnold, Sep 10 2002
a(10)-a(12) from Thomas A. Rockwell (LlewkcoRAT(AT)aol.com), Sep 30 2004
a(12) corrected by Peter Luschny, Aug 03 2013
New name from Alois P. Heinz, Aug 03 2013

A324939 Triangle T(n,k) read by rows in which n-th row lists in increasing order all compositions [c_1, c_2, ..., c_q] of n encoded as Product_{i=1..q} prime(i)^(c_i); n>=0, 1<=k<=A011782(n).

Original entry on oeis.org

1, 2, 4, 6, 8, 12, 18, 30, 16, 24, 36, 54, 60, 90, 150, 210, 32, 48, 72, 108, 120, 162, 180, 270, 300, 420, 450, 630, 750, 1050, 1470, 2310, 64, 96, 144, 216, 240, 324, 360, 486, 540, 600, 810, 840, 900, 1260, 1350, 1500, 1890, 2100, 2250, 2940, 3150, 3750, 4410, 4620, 5250, 6930, 7350, 10290, 11550, 16170, 25410, 30030
Offset: 0

Views

Author

Alois P. Heinz, Sep 04 2019

Keywords

Comments

All terms sorted give A055932.
All terms first sorted by number of factors give A057335.

Examples

			Triangle T(n,k) begins:
   1;
   2;
   4,  6;
   8, 12, 18,  30;
  16, 24, 36,  54,  60,  90, 150, 210;
  32, 48, 72, 108, 120, 162, 180, 270, 300, 420, 450, 630, 750, 1050, 1470, 2310;
  ...
		

Crossrefs

Column k=1 gives A000079.
Last elements of rows give A002110.
Row sums give A325054.
Row lengths give A011782.

Programs

  • Maple
    b:= n-> `if`(n=0, [[]], [seq(map(x-> [j, x[]], b(n-j))[], j=1..n)]):
    T:= n-> sort(map(x-> mul(ithprime(i)^x[i], i=1..nops(x)), b(n)))[]:
    seq(T(n), n=0..7);

A328524 T(n,k) is the k-th smallest least integer of prime signatures for partitions of n into distinct parts; triangle T(n,k), n>=0, 1<=k<=A000009(n), read by rows.

Original entry on oeis.org

1, 2, 4, 8, 12, 16, 24, 32, 48, 72, 64, 96, 144, 360, 128, 192, 288, 432, 720, 256, 384, 576, 864, 1440, 2160, 512, 768, 1152, 1728, 2592, 2880, 4320, 10800, 1024, 1536, 2304, 3456, 5184, 5760, 8640, 12960, 21600, 75600, 2048, 3072, 4608, 6912, 10368, 11520
Offset: 0

Views

Author

Alois P. Heinz, Feb 18 2020

Keywords

Examples

			Triangle T(n,k) begins:
     1;
     2;
     4;
     8,   12;
    16,   24;
    32,   48,   72;
    64,   96,  144,  360;
   128,  192,  288,  432,  720;
   256,  384,  576,  864, 1440, 2160;
   512,  768, 1152, 1728, 2592, 2880, 4320, 10800;
  1024, 1536, 2304, 3456, 5184, 5760, 8640, 12960, 21600, 75600;
  ...
		

Crossrefs

Column k=1-3 give: A000079, A003945 for n>2, A116453 for n>4.
Row sums give A332626.
Last elements of rows give A332644.
Cf. A000009, A087443 (for all partitions), A087980 (as sorted sequence).

Programs

  • Maple
    b:= proc(n, i, j) option remember; `if`(i*(i+1)/2 x*ithprime(j)^i,
           b(n-i, min(n-i, i-1), j+1))[], b(n, i-1, j)[]]))
        end:
    T:= n-> sort(b(n$2, 1))[]:
    seq(T(n), n=0..12);
  • Mathematica
    b[n_, i_, j_] := b[n, i, j] = If[i(i+1)/2 < n, {}, If[n == 0, {1}, Join[# * Prime[j]^i& /@ b[n - i, Min[n - i, i - 1], j + 1], b[n, i - 1, j]]]];
    T[n_] := Sort[b[n, n, 1]];
    Table[T[n], {n, 0, 12}] // Flatten (* Jean-François Alcover, May 07 2020, after Maple *)

A212638 a(n) = n-th powerful number that is the first integer of its prime signature, divided by its largest squarefree divisor: A003557(A181800(n)).

Original entry on oeis.org

1, 2, 4, 8, 16, 6, 32, 12, 64, 24, 36, 128, 48, 72, 256, 96, 144, 30, 512, 192, 216, 288, 60, 1024, 384, 432, 576, 120, 2048, 768, 864, 180, 1152, 240, 1296, 4096, 1536, 1728, 360, 2304, 480, 2592, 8192, 3072, 3456, 720, 900, 4608, 960, 5184, 1080, 16384
Offset: 1

Views

Author

Matthew Vandermast, Jun 05 2012

Keywords

Comments

The number of second signatures represented by the divisors of A181800(n) equals the number of prime signatures represented among the divisors of a(n). Cf. A212172, A212644.
A permutation of A025487.

Examples

			6 (whose prime factorization is 2*3) is the largest squarefree divisor of 144 (whose prime factorization is 2^4*3^2). Since 144 = A181800(10), and 144/6 = 24, a(10) = 24.
		

Crossrefs

Formula

a(n) = A003557(A181800(n)).
Showing 1-10 of 11 results. Next