Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A074828
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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. +0
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; listen)
OFFSET

1,2

COMMENT

a(n) = 2n if n is a prime, a(2n+2) = 2.

PROGRAM

(PARI) print1("1, "); for(n=2, 100, if(isprime(n), print1(2*n, ", "), print1(factor(n)[1, 1], ", "))) (Rick L. Shepherd)

CROSSREFS

Sequence in context: A114579 A021220 A095196 this_sequence A159193 A118967 A059030

Adjacent sequences: A074825 A074826 A074827 this_sequence A074829 A074830 A074831

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Sep 13 2002

EXTENSIONS

More terms from Rick L. Shepherd (rshepherd2(AT)hotmail.com), Jun 07 2004

Entry revised by N. J. A. Sloane (njas(AT)research.att.com), Aug 13 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research