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-4 of 4 results.

A357135 Take the k-th composition in standard order for each part k of the n-th composition in standard order; then concatenate.

Original entry on oeis.org

1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1
Offset: 0

Views

Author

Gus Wiseman, Sep 26 2022

Keywords

Comments

The k-th composition in standard order (graded reverse-lexicographic, A066099) is obtained by taking the set of positions of 1's in the reversed binary expansion of k, prepending 0, taking first differences, and reversing again. This gives a bijective correspondence between nonnegative integers and integer compositions.

Examples

			Triangle begins:
   0:
   1: 1
   2: 2
   3: 1 1
   4: 1 1
   5: 2 1
   6: 1 2
   7: 1 1 1
   8: 3
   9: 1 1 1
  10: 2 2
  11: 2 1 1
  12: 1 1 1
  13: 1 2 1
  14: 1 1 2
  15: 1 1 1 1
		

Crossrefs

See link for sequences related to standard compositions.
Row n is the A357134(n)-th composition in standard order.
The version for Heinz numbers of partitions is A357139, cf. A003963.
Row sums are A357186, differences A357187.

Programs

  • Mathematica
    stc[n_]:=Differences[Prepend[Join @@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
    Join@@Table[Join@@stc/@stc[n],{n,0,30}]

Formula

Row n is the A357134(n)-th composition in standard order.

A357458 First differences of A325033 = "Sum of sums of the multiset of prime indices of each prime index of n.".

Original entry on oeis.org

0, 1, -1, 2, -1, 1, -2, 2, 0, 1, -2, 2, -1, 1, -3, 4, -2, 1, -1, 1, 0, 1, -3, 3, -1, 0, -1, 2, -1, 2, -5, 4, 0, 0, -2, 2, -1, 1, -2, 4, -3, 2, -2, 1, 0, 1, -4, 3, 0, 1, -2, 1, -1, 2, -3, 2, 0, 3, -4, 2, 0, -1, -4, 5, -1, 4, -4, 1, -1, 1, -3, 4, -2, 1, -2, 2
Offset: 1

Views

Author

Gus Wiseman, Sep 30 2022

Keywords

Comments

A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798. The multiset of multisets with MM-number n is formed by taking the multiset of prime indices of each part of the multiset of prime indices of n. For example, the prime indices of 78 are {1,2,6}, so the multiset of multisets with MM-number 78 is {{},{1},{1,2}}.

Examples

			We have A325033(5) - A325033(4) = 2 - 0, so a(4) = 2.
		

Crossrefs

The partial sums are A325033, which has row-products A325032.
The version for standard compositions is A357187.
A000961 lists prime powers.
A003963 multiples prime indices.
A005117 lists squarefree numbers.
A056239 adds up prime indices.

Programs

  • Mathematica
    primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
    Differences[Table[Plus@@Join@@primeMS/@primeMS[n],{n,100}]]

Formula

a(n) = A325033(n + 1) - A325033(n).

A357188 Numbers with (WLOG adjacent) prime indices x <= y such that the greatest prime factor of x is greater than the least prime factor of y.

Original entry on oeis.org

35, 65, 70, 95, 105, 130, 140, 143, 145, 169, 175, 185, 190, 195, 209, 210, 215, 245, 247, 253, 260, 265, 280, 285, 286, 290, 305, 315, 319, 323, 325, 338, 350, 355, 370, 377, 380, 385, 390, 391, 395, 407, 418, 420, 429, 430, 435, 445, 455, 473, 475, 481, 490
Offset: 1

Views

Author

Gus Wiseman, Sep 30 2022

Keywords

Comments

A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798. The multiset of multisets with MM-number n is formed by taking the multiset of prime indices of each part of the multiset of prime indices of n. For example, the prime indices of 78 are {1,2,6}, so the multiset of multisets with MM-number 78 is {{},{1},{1,2}}.

Examples

			The terms and corresponding multisets of multisets:
   35: {{2},{1,1}}
   65: {{2},{1,2}}
   70: {{},{2},{1,1}}
   95: {{2},{1,1,1}}
  105: {{1},{2},{1,1}}
  130: {{},{2},{1,2}}
  140: {{},{},{2},{1,1}}
  143: {{3},{1,2}}
  145: {{2},{1,3}}
  169: {{1,2},{1,2}}
  175: {{2},{2},{1,1}}
  185: {{2},{1,1,2}}
		

Crossrefs

These are the positions of non-weakly increasing rows in A357139.
A000961 lists prime powers.
A003963 multiples prime indices.
A056239 adds up prime indices.

Programs

  • Mathematica
    primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
    Select[Range[100],MatchQ[primeMS[#],{_,x_,y_,_}/;Max@@primeMS[x]>Min@@primeMS[y]]&]
    Select[Range[100],!LessEqual@@Join@@primeMS/@primeMS[#]&]

A358333 By concatenating the standard compositions for each part of the n-th standard composition, we get a sequence of length a(n). Row-lengths of A357135.

Original entry on oeis.org

0, 1, 1, 2, 2, 2, 2, 3, 1, 3, 2, 3, 3, 3, 3, 4, 2, 2, 3, 4, 3, 3, 3, 4, 2, 4, 3, 4, 4, 4, 4, 5, 2, 3, 2, 3, 4, 4, 4, 5, 2, 4, 3, 4, 4, 4, 4, 5, 3, 3, 4, 5, 4, 4, 4, 5, 3, 5, 4, 5, 5, 5, 5, 6, 3, 3, 3, 4, 3, 3, 3, 4, 3, 5, 4, 5, 5, 5, 5, 6, 3, 3, 4, 5, 4, 4, 4
Offset: 0

Views

Author

Gus Wiseman, Nov 10 2022

Keywords

Comments

The k-th composition in standard order (graded reverse-lexicographic, A066099) is obtained by taking the set of positions of 1's in the reversed binary expansion of k, prepending 0, taking first differences, and reversing again. This gives a bijective correspondence between nonnegative integers and integer compositions.

Examples

			Composition 92 in standard order is (2,1,1,3), with compositions ((2),(1),(1),(1,1)) so a(92) = 5.
		

Crossrefs

See link for sequences related to standard compositions (A066099).
Dominates A000120.
Row-lengths of A357135, which is ranked by A357134.
A related sequence is A358330.

Programs

  • Mathematica
    stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
    Length/@Table[Join@@stc/@stc[n],{n,0,100}]

Formula

Sum of A000120 over row n of A066099.
Showing 1-4 of 4 results.