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!)
A022798 a(n) = P(n) + c(n), where P(1) = 1, P(n) = (n-1)-st prime for n >= 2, c(n) = n-th number not in sequence P. 1
5, 8, 11, 14, 17, 23, 27, 32, 35, 41, 49, 52, 59, 65, 68, 73, 80, 87, 91, 99, 104, 107, 114, 119, 127, 136, 141, 145, 151, 154, 159, 175, 180, 187, 190, 201, 205, 212, 219, 224, 231, 239, 243, 254, 257, 262, 265, 279, 292, 297, 301, 307, 314, 317 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = n-th composite + n-th noncomposite = A002808(n) + A008578(n). - Jaroslav Krizek, Nov 18 2009
MATHEMATICA
With[{c=Select[Range[100], CompositeQ]}, c+Join[{1}, Prime[Range[Length[c]-1]]]] (* Paolo Xausa, Nov 03 2023 *)
CROSSREFS
Sequence in context: A180486 A314387 A314388 * A022808 A104279 A184919
KEYWORD
nonn
AUTHOR
EXTENSIONS
Wrong formula removed by Paolo Xausa, Nov 03 2023
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 25 11:06 EDT 2024. Contains 371967 sequences. (Running on oeis4.)