The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A321516 Number of composite divisors of n that are < n. 3
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 2, 0, 2, 0, 0, 0, 4, 0, 0, 1, 2, 0, 3, 0, 3, 0, 0, 0, 5, 0, 0, 0, 4, 0, 3, 0, 2, 2, 0, 0, 6, 0, 2, 0, 2, 0, 4, 0, 4, 0, 0, 0, 7, 0, 0, 2, 4, 0, 3, 0, 2, 0, 3, 0, 8, 0, 0, 2, 2, 0, 3, 0, 6, 2, 0, 0, 7, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,12
COMMENTS
Different from A294902 (see A321517).
a(n) > 0 iff n is a term of A033942.
LINKS
EXAMPLE
For n = 24: The divisors of 24 are 1, 2, 3, 4, 6, 8, 12, 24. Four of those divisors, namely 4, 6, 8 and 12 are composite and < 24, so a(24) = 4.
MATHEMATICA
a[n_] := Length[Select[Most[Divisors[n]], CompositeQ]]; Array[a, 87] (* Amiram Eldar, Nov 12 2018 *)
PROG
(PARI) a(n) = my(d=divisors(n), i=0); for(k=2, #d-1, if(!ispseudoprime(d[k]), i++)); i
(PARI) a(n) = sumdiv(n, d, (d<n) && (d>1) && !isprime(d)); \\ Michel Marcus, Nov 12 2018
CROSSREFS
Sequence in context: A297115 A337346 A294902 * A172246 A087893 A079169
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Nov 12 2018
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 May 29 07:06 EDT 2024. Contains 372926 sequences. (Running on oeis4.)