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.

A298862 Rank of n-th twice-prime when all the primes and twice-primes are jointly ranked.

This page as a plain text file.
%I A298862 #6 Feb 14 2018 08:23:40
%S A298862 3,5,7,10,13,15,18,20,23,26,29,33,35,37,39,43,47,48,51,54,55,59,61,64,
%T A298862 69,72,73,75,76,78,85,87,91,93,97,98,102,104,106,108,112,114,118,120,
%U A298862 122,124,129,134,136,138,141,143,145,149,152,155,156,158,160
%N A298862 Rank of n-th twice-prime when all the primes and twice-primes are jointly ranked.
%H A298862 Clark Kimberling, <a href="/A298862/b298862.txt">Table of n, a(n) for n = 1..1000</a>
%e A298862 A001751 = ordered sequence of primes and twice-primes:  2,3,4,5,6,7,10,... in which twice-primes occupy ranks 3,5,7,...
%t A298862 z = 1000; u = Prime[Range[z]]; w = Take[Union[u, 2 u], z];
%t A298862 p[n_] := If[MemberQ[u, w[[n]]], 0, 1];
%t A298862 Take[w, z];  (* A001751 *)
%t A298862 t = Table[p[n], {n, 1, z}];
%t A298862 Flatten[Position[t, 0]];  (* A298861 *)
%t A298862 Flatten[Position[t, 1]];  (* A298862 *)
%Y A298862 Cf. A000040, A001751, A298861 (complement).
%K A298862 nonn,easy
%O A298862 1,1
%A A298862 _Clark Kimberling_, Feb 13 2018