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.

A226181 Primes p such that p-1 divided by the period of the binary expansion of 1/p equals 2^x for some nonnegative integer x.

This page as a plain text file.
%I A226181 #31 May 29 2014 13:53:40
%S A226181 3,5,7,11,13,17,19,23,29,37,41,47,53,59,61,67,71,73,79,83,89,97,101,
%T A226181 103,107,113,131,137,139,149,163,167,173,179,181,191,193,197,199,211,
%U A226181 227,233,239,257,263,269,271,281,293,311,313,317,337,347,349
%N A226181 Primes p such that p-1 divided by the period of the binary expansion of 1/p equals 2^x for some nonnegative integer x.
%C A226181 Equivalently, p-1 divided by the period of the decimal expansion of 1/p equals 2^x for some nonnegative integer x. Composite numbers satisfying this condition are given in A243050. - _Lear Young_, May 30 2013
%C A226181 Let pi_1(x) and pi(x) be the numbers of primes of this sequence and all primes not exceeding x, respectively. Then, for x>=3, p_1(x)/pi(x) >= C_Artin = 0.37395581... Numerical results suggest that it is likely lim pi_1(x)/pi(x) = 2*C_Artin. - _Peter J. C. Moses_ and _Vladimir Shevelev_, May 29 2014
%H A226181 Lear Young, <a href="/A226181/b226181.txt">Table of n, a(n) for n = 1..1000</a>
%e A226181 (41-1)/20 = 2. 20 is the period of the binary representation of 1/n, the odd part of 2 is 1.
%t A226181 Select[Prime[Range[2, 100]], # == 2^IntegerExponent[#, 2] &[(# - 1)/MultiplicativeOrder[2, #]] &] (* _Peter J. C. Moses_, May 28 2014 *)
%o A226181 (PARI)
%o A226181 is(n) = {
%o A226181   m = valuation(n+1,2);
%o A226181       k=(n+1)>>m;
%o A226181       if(k!=1, for(i=0,(n-1)>>1,
%o A226181         l=valuation(k+n,2);
%o A226181         k=(k+n)>>l;
%o A226181         m+=l;if(k==1,break)));
%o A226181        ((n-1)/m)>>valuation((n-1)/m, 2)==1
%o A226181        \\ m  equals znorder(Mod(2,n))
%o A226181     }
%o A226181 forstep(i=3,1e3,2,if(is(i),print1(i, ", ")))
%o A226181 \\ _Lear Young_ May 30 2013
%o A226181 (PARI)
%o A226181 forstep(i=1,1e3,2,j = (i-1)/znorder(Mod(2,i));if(j>>valuation(j, 2)==1,print1(i, ", "))) \\ _Lear Young_ May 31 2013
%Y A226181 Cf. A007733, A136042.
%K A226181 nonn,easy
%O A226181 1,1
%A A226181 _Lear Young_, May 30 2013