Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A118506
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A118506 Smaller of two consecutive Sophie Germain primes with the same digital sum. +0
1
113, 491, 683, 743, 2549, 3539, 3803, 3911, 4019, 4373, 4391, 4409, 4481, 5081, 6113, 6173, 6563, 6581, 7103, 7433, 7823, 9419, 9539, 10091, 10163, 10253, 10313, 10691, 11813, 12329, 12653, 13049, 13463, 14009, 14081, 14159, 14303, 15629, 15773 (list; graph; listen)
OFFSET

1,1

FORMULA

a(n)=A005384(k): A007953(A005384(k))=A007953(A005384(k+1)) for some k. - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 02 2006

EXAMPLE

113 is in the sequence because it is a Sophie Germain prime and the next Sophie Germain prime (namely 131) has the same digital sum.

MAPLE

isA005384 := proc(n) RETURN(isprime(n) and isprime(2*n+1) ) ; end : A007953 := proc(n) local t1, t2; t1 := n; t2 := 0; while t1 <> 0 do t2 := t2 + (t1 mod 10); t1 := floor(t1/10); od: t2; end: A118506 := proc(pmax) local resul, n, p, opri ; resul := [] ; opri := 0 ; for n from 1 to pmax do p := ithprime(n) ; if isA005384(p) then if A007953(p) = A007953(opri) then resul := [op(resul), opri] ; fi ; opri := p ; fi ; end : RETURN(resul) ; end: A118506(4000) ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 02 2006

CROSSREFS

Cf. A005384.

Sequence in context: A142781 A111013 A142850 this_sequence A109563 A142024 A077287

Adjacent sequences: A118503 A118504 A118505 this_sequence A118507 A118508 A118509

KEYWORD

base,nonn

AUTHOR

Luc Stevens (lms022(AT)yahoo.com), May 06 2006

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 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 November 18 20:14 EST 2008. Contains 147244 sequences.


AT&T Labs Research