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!)
A129189 n-th prime + n-th composite - n. 1
5, 7, 10, 12, 16, 19, 24, 26, 30, 37, 40, 46, 50, 53, 57, 63, 69, 71, 78, 83, 85, 91, 95, 101, 110, 114, 116, 121, 124, 128, 142, 147, 153, 155, 165, 167, 174, 180, 184, 190, 196, 199, 210, 212, 216, 218, 230, 243, 247, 249, 254, 261, 263, 273, 279, 285, 292, 294 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = A064799(n) - n. - Michel Marcus, Mar 14 2014
EXAMPLE
n(1)=2+4-1, n(2)=3+6-2, n(3)=5+8-3, n(4)=7+9-4, n(5)=11+10-5.
MAPLE
c:=proc(n) if isprime(n)=false then n else fi end: C:=[seq(c(n), n=2..100)]: a:=n->ithprime(n)+C[n]-n: seq(a(n), n=1..74); # Emeric Deutsch, Apr 16 2007
MATHEMATICA
Module[{nn=80, prs, cmps, len}, prs=Prime[Range[nn]]; cmps=Complement[ Range[ 2, 2nn], prs]; len=Min[nn, Length[cmps]]; #[[1]]+#[[2]]-#[[3]]&/@ Thread[ {Take[ prs, len], Take[cmps, len], Range[len]}]] (* Harvey P. Dale, Oct 05 2016 *)
CROSSREFS
Sequence in context: A123122 A256680 A293867 * A066513 A218852 A028810
KEYWORD
nonn
AUTHOR
Edwin F. Sampang, Apr 01 2007
EXTENSIONS
More terms from Emeric Deutsch, Apr 16 2007
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 08:33 EDT 2024. Contains 371905 sequences. (Running on oeis4.)