Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A137451
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A137451 a(1)=1. a(n) = the smallest integer > a(n-1) such that a(n)+a(k), for some k where 1<=k<=n, is the nth prime. +0
1
1, 2, 3, 4, 7, 9, 10, 12, 13, 16, 18, 19, 22, 24, 25, 28, 31, 33, 34, 37, 39, 40, 43, 46, 51, 55, 57, 61, 63, 67, 70, 74, 76, 78, 79, 81, 83, 84, 86, 87, 92, 94, 97, 99, 100, 102, 109, 114, 118, 120, 124, 125, 127, 131, 132, 136, 137, 139, 140, 141, 142, 151, 156, 160 (list; graph; listen)
OFFSET

1,2

EXAMPLE

103 is the 27th prime. Checking: 103-a(26) = 103-55 = 48, which is <= a(26)=55; so a(27) is not 48. 103-a(25) = 103-51 = 52, which is also <= a(26). But 103-a(24) = 103-46 = 57, which is > a(26). So a(27) is 57, and a(27)+a(24) = the 27th prime = 103.

MAPLE

A137451 := proc(n) option remember ; local p, o; if n <= 3 then RETURN(n) ; fi ; p := ithprime(n) ; for o from 1 do if p-A137451(n-o) > A137451(n-1) then RETURN( p-A137451(n-o) ) ; fi ; od: end: seq(A137451(n), n=1..120) ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 23 2008

CROSSREFS

Sequence in context: A047340 A096118 A050029 this_sequence A057912 A141748 A057267

Adjacent sequences: A137448 A137449 A137450 this_sequence A137452 A137453 A137454

KEYWORD

nonn

AUTHOR

Leroy Quet (q1qq2qqq3qqqq(AT)yahoo.com), Apr 18 2008

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 23 2008

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 3 01:16 EST 2008. Contains 151161 sequences.


AT&T Labs Research