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.

A152810 Let the binary expansion of n be n = Sum_{k} 2^{r_k}, let e(n) be the number of r_k's that are even, o(n) the number that are odd; sequence gives odd n such that e(n) > o(n) and e(n)-o(n) == 1 or 2 (mod 6).

This page as a plain text file.
%I A152810 #8 Sep 12 2019 10:50:16
%S A152810 1,5,7,13,17,19,23,25,29,31,37,49,53,55,61,65,67,71,73,77,79,83,89,91,
%T A152810 95,97,101,103,109,113,115,119,121,125,127,133,145,149,151,157,181,
%U A152810 193,197,199,205,209,211,215,217,221,223,229,241,245,247,253,257,259
%N A152810 Let the binary expansion of n be n = Sum_{k} 2^{r_k}, let e(n) be the number of r_k's that are even, o(n) the number that are odd; sequence gives odd n such that e(n) > o(n) and e(n)-o(n) == 1 or 2 (mod 6).
%C A152810 Primes in the sequence are not in A065049.
%H A152810 Amiram Eldar, <a href="/A152810/b152810.txt">Table of n, a(n) for n = 1..10000</a>
%t A152810 aQ[n_] := Module[{d = Reverse[IntegerDigits[n, 2]]}, e = Total@d[[1 ;; -1 ;; 2]]; o = Total@d[[2 ;; -1 ;; 2]]; e > o && MemberQ[{1, 2}, Mod[e - o, 6]]]; Select[Range[1, 260, 2], aQ] (* _Amiram Eldar_, Sep 12 2019 *)
%Y A152810 Cf. A065049, A139370, A152754.
%K A152810 nonn
%O A152810 1,2
%A A152810 _Vladimir Shevelev_, Dec 13 2008
%E A152810 More terms from _Amiram Eldar_, Sep 12 2019