login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A090369
Smallest divisor of 2n that is > 2, or 0 if no such divisor exists.
8
0, 4, 3, 4, 5, 3, 7, 4, 3, 4, 11, 3, 13, 4, 3, 4, 17, 3, 19, 4, 3, 4, 23, 3, 5, 4, 3, 4, 29, 3, 31, 4, 3, 4, 5, 3, 37, 4, 3, 4, 41, 3, 43, 4, 3, 4, 47, 3, 7, 4, 3, 4, 53, 3, 5, 4, 3, 4, 59, 3, 61, 4, 3, 4, 5, 3, 67, 4, 3, 4, 71, 3, 73, 4, 3, 4, 7, 3, 79, 4, 3, 4, 83, 3, 5, 4, 3, 4, 89, 3, 7, 4, 3, 4, 5
OFFSET
1,2
LINKS
MAPLE
A090369 := proc(n) local lf, i ; lf := numtheory[divisors](2*n) ; for i from 1 to nops(lf) do if op(i, lf) > 2 then RETURN( op(i, lf) ) ; fi ; od ; RETURN(0) ; end : for n from 0 to 100 do printf("%d, ", A090369(n)) ; od ; # R. J. Mathar, Jun 02 2006
MATHEMATICA
Join[{0}, Table[SelectFirst[Divisors[2n], #>2&], {n, 2, 120}]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 24 2017 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lekraj Beedassy, Nov 27 2003
EXTENSIONS
More terms from Ray Chandler, Dec 02 2003
Edited by N. J. A. Sloane at the suggestion of Rémi Eismann, Sep 15 2007
STATUS
approved