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!)
A140747 a(n) is the number of divisors of n that are coprime to the next larger divisor of n. 2
0, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 3, 1, 2, 2, 1, 1, 2, 1, 2, 2, 2, 1, 3, 1, 2, 1, 2, 1, 4, 1, 1, 2, 2, 2, 3, 1, 2, 2, 3, 1, 3, 1, 2, 3, 2, 1, 3, 1, 2, 2, 2, 1, 2, 2, 3, 2, 2, 1, 5, 1, 2, 3, 1, 2, 3, 1, 2, 2, 4, 1, 4, 1, 2, 2, 2, 2, 3, 1, 3, 1, 2, 1, 5, 2, 2, 2, 2, 1, 5, 2, 2, 2, 2, 2, 3, 1, 2, 2, 2, 1, 3, 1, 2, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
LINKS
FORMULA
a(n) + A140748(n) = A000005(n) - 1.
EXAMPLE
The divisors of 20 are 1,2,4,5,10,20. 1 is coprime to 2. 2 is not coprime to 4. 4 is coprime to 5. 5 is not coprime to 10. And 10 is not coprime to 20. So there are 2 divisors, 1 and 4, that are each coprime to the next higher divisor. So a(20) = 2.
PROG
(PARI) A140747(n) = { my(s=0, pd=0); fordiv(n, d, s += (pd&&(1==gcd(d, pd))); pd = d); s; }; \\ (Based on the fact that in PARI, if the first argument of fordiv is an integer, divisors are sorted by increasing size.) Antti Karttunen, Aug 12 2017
CROSSREFS
Sequence in context: A206921 A327402 A123529 * A330757 A322373 A332288
KEYWORD
nonn
AUTHOR
Leroy Quet, May 26 2008
EXTENSIONS
Extended by Max Alekseyev, Mar 12 2009
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 23 22:36 EDT 2024. Contains 371917 sequences. (Running on oeis4.)