login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A271353 The prime n - A270003(n) - A270753(n). 3

%I #7 Apr 29 2016 17:31:47

%S 7,3,2,3,2,3,2,5,5,3,2,3,2,5,5,3,2,3,2,5,5,3,2,7,7,5,5,3,2,3,2,7,7,5,

%T 5,3,2,5,5,3,2,3,2,5,5,3,2,7,7,5,5,3,2,7,7,5,5,3,2,3,2,7,7,5,5,3,2,5,

%U 5,3,2,3,2,7,7,5,5,3,2,5,5,3,2,7,7,5

%N The prime n - A270003(n) - A270753(n).

%H Clark Kimberling, <a href="/A271353/b271353.txt">Table of n, a(n) for n = 1..10000</a>

%e n p q r

%e 1 3 5 7

%e 2 2 3 3

%e 3 2 3 2

%e 4 2 5 3

%e 5 2 5 2

%e 6 2 7 3

%e 7 2 7 2

%t t = Join[{{1, {3, 5, 7}}, {2, {2, 3, 3}}}, Table[If[PrimeQ[n], {n, {2, n, 2}}, p = If[EvenQ[2 + NextPrime[n, 1] - n], 3, 2]; NestWhile[# + 1 &, 1, ! PrimeQ[r = (p + (q = NextPrime[n, #])) - n] &]; {n, {p, q, r}}], {n, 3, 300}]];

%t Map[#[[2]][[1]] &, t] (* p, A270003 *)

%t Map[#[[2]][[2]] &, t] (* q, A270753 *)

%t Map[#[[2]][[3]] &, t] (* r, A271353 *)

%t (* _Peter J. C. Moses_, Apr 26 2016 *)

%Y Cf. A000040, A270003, A270753.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, Apr 26 2016

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 16:40 EDT 2024. Contains 371916 sequences. (Running on oeis4.)