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!)
A141501 a(n) is smallest integer for which the number of integers from 1 to a(n) that are not divisors of n is greater than the number of integers from 1 to a(n) that are divisors of n. 2
3, 5, 5, 7, 3, 9, 3, 7, 5, 7, 3, 11, 3, 5, 7, 7, 3, 11, 3, 9, 5, 5, 3, 15, 3, 5, 5, 9, 3, 13, 3, 7, 5, 5, 3, 15, 3, 5, 5, 13, 3, 11, 3, 7, 7, 5, 3, 15, 3, 7, 5, 7, 3, 11, 3, 11, 5, 5, 3, 19, 3, 5, 5, 7, 3, 9, 3, 7, 5, 9, 3, 17, 3, 5, 7, 7, 3, 9, 3, 13, 5, 5, 3, 17, 3, 5, 5, 7, 3, 17, 3, 7, 5, 5, 3, 15, 3, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Is a(n) always odd?
Yes, a(n) is always odd. At a(n) - 1, there are the same number of divisors and non-divisors, so a(n) - 1 is even. - Franklin T. Adams-Watters, Feb 09 2018
LINKS
EXAMPLE
a(6) = 9 because among the integers 1 through 9 we have:
Divisors: 1, 2, 3, 6;
Non-divisors: 4, 5, 7, 8, 9.
PROG
(PARI) {for(n=1, 100, k=1; d=divisors(n); while(1, c=0; for(j=1, #d, if(d[j]<=k, c++)); if(k-c<=c, k++, break)); print1(k, ", "))} \\ Klaus Brockhaus, Aug 18 2008
CROSSREFS
Cf. A143474 (smallest k such that A141501(k) = 2*n+1). - Klaus Brockhaus, Aug 25 2008
Sequence in context: A266567 A282624 A179858 * A277776 A103988 A285204
KEYWORD
nonn
AUTHOR
J. Lowell, Aug 10 2008
EXTENSIONS
Extended by Klaus Brockhaus, Aug 18 2008
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 April 25 09:26 EDT 2024. Contains 371967 sequences. (Running on oeis4.)