login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A046666 n-(smallest prime dividing n). 4
0, 0, 2, 0, 4, 0, 6, 6, 8, 0, 10, 0, 12, 12, 14, 0, 16, 0, 18, 18, 20, 0, 22, 20, 24, 24, 26, 0, 28, 0, 30, 30, 32, 30, 34, 0, 36, 36, 38, 0, 40, 0, 42, 42, 44, 0, 46, 42, 48, 48, 50, 0, 52, 50, 54, 54, 56, 0, 58, 0, 60, 60, 62, 60, 64, 0, 66, 66, 68, 0, 70, 0 (list; graph; refs; listen; history; internal format)
OFFSET

2,3

COMMENTS

Contribution from Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Jul 08 2010: (Start)

a(n)=0 iff n is not composite;

for composite n: a(n) = MAX(m: m < n and GCD(m,n) > 1). (End)

MATHEMATICA

Table[n-First@(First/@FactorInteger[n]), {n, 2, 200}] (*From Vladimir Joseph Stephan Orlovsky, Apr 8 2011*)

CROSSREFS

Cf. A061228.

Sequence in context: A130891 A091371 A144775 * A176296 A131575 A077957

Adjacent sequences:  A046663 A046664 A046665 * A046667 A046668 A046669

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 21:13 EST 2012. Contains 206085 sequences.