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.

A360005 Two times the median of the multiset of prime indices of n.

This page as a plain text file.
%I A360005 #6 Jan 23 2023 12:41:26
%S A360005 2,4,2,6,3,8,2,4,4,10,2,12,5,5,2,14,4,16,2,6,6,18,2,6,7,4,2,20,4,22,2,
%T A360005 7,8,7,3,24,9,8,2,26,4,28,2,4,10,30,2,8,6,9,2,32,4,8,2,10,11,34,3,36,
%U A360005 12,4,2,9,4,38,2,11,6,40,2,42,13,6,2,9,4,44,2
%N A360005 Two times the median of the multiset of prime indices of n.
%C A360005 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.
%C A360005 The median of a multiset is either the middle part (for odd length), or the average of the two middle parts (for even length).
%e A360005 The prime indices of 360 are {1,1,1,2,2,3}, with median 3/2, so a(360) = 3.
%t A360005 prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
%t A360005 Table[2*Median[prix[n]],{n,2,100}]
%Y A360005 The triangle for this statistic is A359893, cf. A359901, A359902.
%Y A360005 Positions of even terms are A359908, odd A359912.
%Y A360005 Positions of first appearances are A360006, sorted A360007.
%Y A360005 A112798 lists prime indices, length A001222, sum A056239.
%Y A360005 A316413 lists numbers whose prime indices have integer mean.
%Y A360005 A325347 = partitions w/ integer median, strict A359907, complement A307683.
%Y A360005 A326567/A326568 gives mean of prime indices.
%Y A360005 Cf. A026424, A359889, A359890, A360009.
%K A360005 nonn
%O A360005 2,1
%A A360005 _Gus Wiseman_, Jan 23 2023