The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A062720 If n is odd then 2*n else prime(n). 0
2, 3, 6, 7, 10, 13, 14, 19, 18, 29, 22, 37, 26, 43, 30, 53, 34, 61, 38, 71, 42, 79, 46, 89, 50, 101, 54, 107, 58, 113, 62, 131, 66, 139, 70, 151, 74, 163, 78, 173, 82, 181, 86, 193, 90, 199, 94, 223, 98, 229, 102, 239, 106, 251, 110, 263, 114, 271, 118, 281, 122, 293 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
Table[If[OddQ[n], 2n, Prime[n]], {n, 70}] (* Harvey P. Dale, Oct 11 2022 *)
PROG
(PARI) j=[]; for(n=1, 150, if(n%2, j=concat(j, (2*n)), j=concat(j, prime(n)))); j
CROSSREFS
Sequence in context: A330572 A287241 A331075 * A069813 A266534 A293392
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Jul 14 2001
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 May 28 19:55 EDT 2024. Contains 372919 sequences. (Running on oeis4.)