Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A127272
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A127272 Suppose the sum of the digits of prime(n) and prime(n+1) divides prime(n) + prime(n+1). Sequence gives prime(n). +0
1
2, 3, 5, 7, 11, 17, 29, 41, 43, 71, 79, 97, 101, 107, 113, 191, 193, 197, 223, 227, 229, 263, 269, 293, 311, 313, 317, 349, 359, 401, 419, 431, 457, 463, 503, 521, 599, 643, 659, 661, 691, 733, 757, 773, 809, 823, 827, 839, 881, 887, 911, 1013, 1019, 1021 (list; graph; listen)
OFFSET

1,1

EXAMPLE

Sum of the digits of prime(25) = 97 is 16, sum of the digits of prime(26) = 101 is 2. 16+2 = 18, which divides 97+101 = 198 = 11*18. Hence prime(25) = 97 is a term.

MATHEMATICA

Prime[ Select[ Range[ 155 ], Mod[ Prime[ # ]+Prime[ #+1 ], Apply[ Plus, IntegerDigits[ Prime[ # ] ] ]+Apply[ Plus, IntegerDigits[ Prime[ #+1 ] ] ] ]==0& ] ] - Farideh Firoozbakht

PROGRAM

(MAGMA) [ p: p in [ NthPrime(k): k in [1..172] ] | (p+q) mod (&+Intseq(p, 10) + &+Intseq(q, 10)) eq 0 where q is NextPrime(p) ]; /* Klaus Brockhaus, Mar 29 2007 */

CROSSREFS

Sequence in context: A072465 A052284 A133670 this_sequence A113192 A077673 A071255

Adjacent sequences: A127269 A127270 A127271 this_sequence A127273 A127274 A127275

KEYWORD

nonn,base

AUTHOR

J. M. Bergot (thekingfishb(AT)yahoo.ca), Mar 27 2007

EXTENSIONS

Edited and extended by Klaus Brockhaus (klaus-brockhaus(AT)t-online.de) and Farideh Firoozbakht (mymontain(AT)yahoo.com), Mar 29 2007

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 December 15 00:47 EST 2009. Contains 170825 sequences.


AT&T Labs Research