login
This site is supported by donations to The OEIS Foundation.

 

Logo

The OEIS is looking to hire part-time people to help edit core sequences, upload scanned documents, process citations, fix broken links, etc. - Neil Sloane, njasloane@gmail.com

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A111071 Difference between the product of two consecutive primes and the next prime. 6
1, 8, 24, 64, 126, 202, 300, 408, 636, 862, 1106, 1474, 1716, 1968, 2432, 3066, 3532, 4016, 4684, 5104, 5684, 6468, 7290, 8532, 9694, 10296, 10912, 11550, 12190, 14220, 16500, 17808, 18894, 20560, 22342, 23544, 25424, 27048, 28712, 30786, 32208 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

This is a possible solution of problem 16 in C. P. Simoes's link.

I conjecture that the only powers of two are a(1,2,4) = (1,8,64) = (2^0, 2^3,2^6); also, the only squares are 1 and 64. - Zak Seidov, Jul 16 2015

LINKS

Table of n, a(n) for n=1..41.

C. P. Simoes, Teste de Desempenho Mental.

FORMULA

a(n) = prime(n)*prime(n+1)-prime(n+2) = A006094(n)-A000040(n+2) = 2*A152527(n-1).

EXAMPLE

a(4)= prime(4)*prime(5)-prime(6) = 7*11-13=64.

MAPLE

seq(ithprime(n)*ithprime(n+1)-ithprime(n+2), n=1..50); # Emeric Deutsch, Oct 10 2005

MATHEMATICA

f[n_] := Prime[n]Prime[n + 1] - Prime[n + 2]; Table[ f[n], {n, 41}] (* Robert G. Wilson v, Oct 10 2005  *)

#[[1]]*#[[2]]-#[[3]]&/@Partition[Prime[Range[50]], 3, 1] (* Harvey P. Dale, Aug 06 2015 *)

PROG

(PARI) main(size)=my(n); vector(size, n, prime(n)*prime(n+1)-prime(n+2)) /* Anders Hellström, Jul 16 2015 */

(MAGMA) [NthPrime(n)*NthPrime(n+1)-NthPrime(n+2): n in [1..50]]; // Vincenzo Librandi, Jul 18 2015

CROSSREFS

Cf. A000040.

Sequence in context: A066497 A205963 A208895 * A090336 A200253 A199911

Adjacent sequences:  A111068 A111069 A111070 * A111072 A111073 A111074

KEYWORD

nonn

AUTHOR

Christopher M. Tomaszewski (cmt1288(AT)comcast.net), Oct 09 2005

EXTENSIONS

More terms from Robert G. Wilson v and Emeric Deutsch, Oct 10 2005

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified May 30 06:51 EDT 2017. Contains 287302 sequences.