login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A131516
a(n)=1 if n is an odd prime number, otherwise, a(n)=n.
3
0, 1, 2, 1, 4, 1, 6, 1, 8, 9, 10, 1, 12, 1, 14, 15, 16, 1, 18, 1, 20, 21, 22, 1, 24, 25, 26, 27, 28, 1, 30, 1, 32, 33, 34, 35, 36, 1, 38, 39, 40, 1, 42, 1, 44, 45, 46, 1, 48, 49, 50, 51, 52, 1, 54, 55, 56, 57, 58, 1, 60, 1, 62, 63, 64, 65, 66, 1, 68
OFFSET
0,3
PROG
(PARI) a(n) = if ((n%2) && isprime(n), 1, n); \\ Michel Marcus, Nov 13 2013
CROSSREFS
Sequence in context: A317494 A317505 A137374 * A088140 A130758 A130892
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Aug 14 2007
EXTENSIONS
Offset corrected by Ivan Panchenko, Nov 13 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 20 00:39 EDT 2024. Contains 376015 sequences. (Running on oeis4.)