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!)
A164880 Maximum number of copies of proper divisors of n required to express n as a sum; a(1) = 0 by convention. 2
0, 2, 3, 2, 5, 1, 7, 2, 3, 2, 11, 1, 13, 2, 2, 2, 17, 1, 19, 1, 2, 2, 23, 1, 5, 2, 3, 1, 29, 1, 31, 2, 3, 2, 4, 1, 37, 2, 3, 1, 41, 1, 43, 2, 2, 2, 47, 1, 7, 2, 3, 2, 53, 1, 4, 1, 3, 2, 59, 1, 61, 2, 2, 2, 4, 1, 67, 2, 3, 2, 71, 1, 73, 2, 2, 2, 5, 1, 79, 1, 3, 2, 83, 1, 4, 2, 3, 1, 89, 1, 5, 2, 3, 2, 4, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
For p prime, a(p^k) = p.
a(n) = 1 iff n in A005835.
a(n) >= n/(sigma(n)-n) = n/A001065(n), where sigma is A000203; when the right hand side is an integer, this is an equality.
LINKS
PROG
(PARI) a(n)=local(ds, p); if(n<=1, return(0)); ds=divisors(n); if(#ds==2, return(n)); p=prod(i=1, #ds-1, (1+x^ds[i])); for(k=0, n, if(polcoeff(p^k, n)!=0, return(k)))
/* The test for #ds==2 is for speed; the program works without it. */
CROSSREFS
Sequence in context: A098228 A081303 A369044 * A267068 A242947 A300852
KEYWORD
nonn
AUTHOR
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 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)