Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A112731
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A112731 Primes such that the sum of the predecessor and successor primes is divisible by 7. +0
15
3, 13, 61, 71, 83, 167, 197, 241, 271, 281, 283, 317, 347, 349, 379, 431, 457, 499, 503, 569, 617, 631, 641, 643, 701, 757, 761, 797, 827, 829, 863, 1061, 1151, 1163, 1217, 1321, 1381, 1471, 1481, 1483, 1531, 1543, 1553, 1609, 1619, 1667, 1669, 1777, 1877 (list; graph; listen)
OFFSET

1,1

EXAMPLE

a(1) = 3 because previousprime(3) + nextprime(3) = 2 + 5 = 7.

a(2) = 13 because previousprime(13) + nextprime(13) = 11 + 17 = 28 = 7 * 4.

a(3) = 61 because previousprime(61) + nextprime(61) = 59 + 67 = 126 = 7 * 18.

a(4) = 71 because previousprime(71) + nextprime(71) = 67 + 73 = 140 = 7 * 20.

MATHEMATICA

For[n = 2, n < 300, n++, If[(Prime[n - 1] + Prime[n + 1])/7 == Floor[(Prime[n - 1] + Prime[n + 1])/7], Print[Prime[n]]]] (Steinerberger)

Prime@Select[Range[2, 298], Mod[Prime[ # - 1] + Prime[ # + 1], 7] == 0 &] (from Robert G. Wilson v (rgwv(at)rgwv.com), Jan 11 2006)

CROSSREFS

Cf. A000040, A112681, A112794, A112731, A112789, A112795, A112796, A112804, A112847, A112859, A113155, A113156, A113157, A113158.

Adjacent sequences: A112728 A112729 A112730 this_sequence A112732 A112733 A112734

Sequence in context: A074437 A026578 A020007 this_sequence A106884 A112568 A104089

KEYWORD

easy,nonn

AUTHOR

Jonathan Vos Post (jvospost2(AT)yahoo.com), Dec 31 2005

EXTENSIONS

More terms from Stefan Steinerberger (stefan.steinerberger(AT)gmail.com) and Robert G. Wilson v (rgwv(at)rgwv.com), Jan 02 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified May 16 23:01 EDT 2008. Contains 139884 sequences.


AT&T Labs Research