login
Triangle read by rows: row j lists j primes by ascending n bit bientropy (n >= 8).
1

%I #46 May 09 2020 17:07:51

%S 2,3,2,5,3,2,5,3,2,7,5,3,2,7,11,5,3,2,7,11,13,17,5,3,2,7,11,13,17,5,3,

%T 2,7,11,19,13,17,5,3,23,2,7,11,19,13,17,5,3,23,29,2,7,11,19,13,17,5,3,

%U 23,29,2,7,31,11,19,13,17,5,3,23,29,2,7,31,11,19,37,13

%N Triangle read by rows: row j lists j primes by ascending n bit bientropy (n >= 8).

%C Primes are sorted by the relative order and disorder of their n binary digits as measured by the bientropy function. When two or more primes have the same bientropy, their natural order is preserved.

%D G. J. Croll, Bientropy - the measurement and algebras of order and disorder in finite binary strings. Scientific essays in honor of H. Pierre Noyes on the occasion of his 90th Birthday, World Scientific, 2014, pages 48-64.

%H Grenville J. Croll, <a href="https://arxiv.org/abs/1912.08051">BiEntropy, TriEntropy and Primality</a>, arXiv:1912.08051 [cs.OH], 2019.

%H Grenville J. Croll, <a href="https://www.mdpi.com/1099-4300/22/3/311">BiEntropy, TriEntropy and Primality</a>, Entropy 2020, 22, 311.

%H Grenville J. Croll, <a href="https://doi.org/10.6084/m9.figshare.11743749">BiEntropy_TriEntropy_and_Primality.zip</a>, Figshare Dataset, 2020.

%F Given a binary string s = s1...sn (where in this application n >= 8), there are n-1 binary derivatives of s, Dk(s), 1 <= k <= n-1.

%F The first binary derivative of s, D1(s), is the binary string of length n-1 formed by XORing adjacent pairs of digits of s.

%F We refer to the k-th derivative of s, Dk(s), as the binary derivative of Dk-1(s).

%F p(k) is the proportion of 1's in Dk.

%F D0 = s;

%F 0*log_2(0) is defined to be 0;

%F C = 1/(2^(n-1)-1);

%F D = Sum_{k=0..n-2}(-p(k)*log_2(p(k))-(1-p(k))*log_2(1-p(k)))*2^k.

%F bientropy(s) = C*D;

%e For example, the 8-bit bientropy of 17 (a Fermat prime) is 0.0534 as, in binary, it is a periodic binary number - 00010001. The bientropy of 13 is 0.9532 as its binary digits - 00001101 are not periodic. Each row j reveals where the j-th prime sits relative to the rest given its bientropy.

%e Triangle begins:

%e 2,

%e 3, 2,

%e 5, 3, 2,

%e 5, 3, 2, 7,

%e 5, 3, 2, 7, 11

%e 5, 3, 2, 7, 11, 13

%e 17, 5, 3, 2, 7, 11, 13

%e 17, 5, 3, 2, 7, 11, 19, 13

%e 17, 5, 3, 23, 2, 7, 11, 19, 13

%e 17, 5, 3, 23, 29, 2, 7, 11, 19, 13

%e 17, 5, 3, 23, 29, 2, 7, 31, 11, 19, 13

%e 17, 5, 3, 23, 29, 2, 7, 31, 11, 19, 37, 13

%e ...

%o (Excel) See Grenville J. Croll Figshare link.

%Y Cf. A000040, A019434.

%K tabl,easy,nonn,base

%O 1,1

%A _Grenville J. Croll_, Feb 02 2020