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!)
A074828 a(1) = 1; for n>1, a(n) = smallest composite multiple of n if n is a prime else the smallest prime divisor of n if n is composite. 2
1, 4, 6, 2, 10, 2, 14, 2, 3, 2, 22, 2, 26, 2, 3, 2, 34, 2, 38, 2, 3, 2, 46, 2, 5, 2, 3, 2, 58, 2, 62, 2, 3, 2, 5, 2, 74, 2, 3, 2, 82, 2, 86, 2, 3, 2, 94, 2, 7, 2, 3, 2, 106, 2, 5, 2, 3, 2, 118, 2, 122, 2, 3, 2, 5, 2, 134, 2, 3, 2, 142, 2, 146, 2, 3, 2, 7, 2, 158, 2, 3, 2, 166, 2, 5, 2, 3, 2, 178, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) = 2n if n is a prime, a(2n+2) = 2.
LINKS
PROG
(PARI) print1("1, "); for(n=2, 100, if(isprime(n), print1(2*n, ", "), print1(factor(n)[1, 1], ", "))) (Rick L. Shepherd)
(PARI) A074828(n) = if(1==n, n, if(isprime(n), 2*n, factor(n)[1, 1])); \\ Antti Karttunen, Feb 06 2019
CROSSREFS
Cf. A020639.
Sequence in context: A021220 A195410 A095196 * A282028 A251561 A159193
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 13 2002
EXTENSIONS
More terms from Rick L. Shepherd, Jun 07 2004
Entry revised by N. J. A. Sloane, Aug 13 2006
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 7 21:53 EDT 2024. Contains 372317 sequences. (Running on oeis4.)