OFFSET
1,2
LINKS
Diana Mecum, Table of n, a(n) for n = 1..1000
EXAMPLE
The divisors of 28 are 1,2,4,7,14,28. Among adjacent pairs of divisors, 1 and 2 are coprime and 4 and 7 are coprime. Therefore there are a(28) = 4 divisors (1,2,4,7) that are each next to another divisor that they are coprime to.
MATHEMATICA
Table[Boole[n > 1] + Total@ Boole@ Map[AnyTrue[Partition[#, 2, 1], CoprimeQ @@ # &] &, Partition[Append[Divisors[n], n], 3, 1]], {n, 105}] (* Michael De Vlieger, Aug 19 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 17 2007
EXTENSIONS
More terms from Diana L. Mecum, Jul 11 2007, Jul 13 2008
STATUS
approved