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!)
A272476 a(n) = n if n is prime, a(n) = 2*n+3 otherwise. 1
3, 5, 2, 3, 11, 5, 15, 7, 19, 21, 23, 11, 27, 13, 31, 33, 35, 17, 39, 19, 43, 45, 47, 23, 51, 53, 55, 57, 59, 29, 63, 31, 67, 69, 71, 73, 75, 37, 79, 81, 83, 41, 87, 43, 91, 93, 95, 47, 99, 101, 103, 105, 107, 53, 111, 113, 115, 117, 119, 59, 123, 61, 127 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Prime numbers repeated: 3, 5, 11, 19, 23, 31, 43, 47, 53, 59, 67, 71, ..., that is A065091 without A089531.
LINKS
MATHEMATICA
Table[If[PrimeQ[n], n, 2 n + 3], {n, 0, 150}]
PROG
(Magma) [IsPrime(n) select n else 2*n+3: n in [0..80]];
CROSSREFS
Sequence in context: A241429 A200109 A156060 * A205701 A218888 A261597
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, May 02 2016
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 19 17:51 EDT 2024. Contains 371797 sequences. (Running on oeis4.)