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!)
A138042 Numbers n such that A096379(n)=A096379(n+1). 3
2, 7, 13, 19, 49, 69, 116, 182, 206, 225, 229, 236, 253, 265, 288, 315, 324, 352, 379, 390, 394, 435, 492, 497, 542, 551, 567, 625, 643, 658, 718, 754, 794, 920, 930, 935, 958, 966, 988, 1025, 1032, 1085, 1101, 1128, 1155, 1171, 1173, 1225, 1235, 1249 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Numbers n such that prime(n)=2*prime(n+2)-prime(n+3).
LINKS
FORMULA
a(n) = A066495(n) - 2.
EXAMPLE
n=2: {prime(n), 2*prime(n+2)-prime(n+3)}={3,2*7-11},
n=7: {prime(7), 2*prime(9)-prime(10)}={17,2*23-29},
n=13: {prime(13), 2*prime(15)-prime(16)}={41,2*47-53},
n=19: {prime(19), 2*prime(21)-prime(22)}={67,2*73-79}.
MATHEMATICA
Do[If[Prime[n]==2Prime[n+2]-Prime[n+3], Print[n]], {n, 1, 50000}]
PROG
(Scheme with Antti Karttunen's IntSeq-library)
(define A138042 (MATCHING-POS 1 1 (lambda (n) (= 2 (/ (+ (A000040 n) (A000040 (+ n 3))) (A000040 (+ n 2)))))))
CROSSREFS
Sequence in context: A331544 A237499 A231476 * A053977 A079381 A079382
KEYWORD
nonn
AUTHOR
Zak Seidov, Mar 02 2008
EXTENSIONS
Formula corrected by Antti Karttunen, Jul 13 2013
STATUS
approved

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 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)