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.

A358171 The a(n)-th composition in standard order (A066099) is the first differences plus one of the prime indices of n (A112798).

This page as a plain text file.
%I A358171 #12 Jul 15 2023 10:36:27
%S A358171 0,0,0,1,0,2,0,3,1,4,0,6,0,8,2,7,0,5,0,12,4,16,0,14,1,32,3,24,0,10,0,
%T A358171 15,8,64,2,13,0,128,16,28,0,20,0,48,6,256,0,30,1,9,32,96,0,11,4,56,64,
%U A358171 512,0,26,0,1024,12,31,8,40,0,192,128,18,0,29,0
%N A358171 The a(n)-th composition in standard order (A066099) is the first differences plus one of the prime indices of n (A112798).
%C A358171 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.
%C A358171 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.
%H A358171 Gus Wiseman, <a href="https://docs.google.com/document/d/e/2PACX-1vTCPiJVFUXN8IqfLlCXkgP15yrGWeRhFS4ozST5oA4Bl2PYS-XTA3sGsAEXvwW-B0ealpD8qnoxFqN3/pub">Statistics, classes, and transformations of standard compositions</a>
%e A358171 The prime indices of 36 are {1,1,2,2}, with first differences plus one (1,2,1), which is the 13th composition in standard order, so a(36) = 13.
%t A358171 primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
%t A358171 stcinv[q_]:=Total[2^(Accumulate[Reverse[q]])]/2;
%t A358171 Table[stcinv[Differences[primeMS[n]]+1],{n,100}]
%Y A358171 See link for sequences related to standard compositions.
%Y A358171 Prepend 1 to indices: A253566 (cf. A358169), inverse A253565 (cf. A242628).
%Y A358171 Taking Heinz number instead of standard composition number gives A325352.
%Y A358171 These compositions minus one are listed by A355536, sums A243055.
%Y A358171 A001222 counts prime indices, distinct A001221.
%Y A358171 A066099 lists standard compositions, lengths A000120, sums A070939.
%Y A358171 A112798 lists prime indices, sum A056239.
%Y A358171 A355534 = augmented diffs. of rev. prime indices, Heinz numbers A325351.
%Y A358171 Cf. A000720, A005940, A055932, A057335, A066312, A286470, A287352, A325390.
%K A358171 nonn
%O A358171 1,6
%A A358171 _Gus Wiseman_, Dec 21 2022