OFFSET
1,6
FORMULA
a(n) = n + 2 - d(n) - d(n+1), where d(n) is the number of positive divisors of n.
EXAMPLE
The divisors of 9 are 1,3,9. The divisors of 9+1=10 are 1,2,5,10. The 4 positive integers which are < 9 and are neither divisors of 9 nor of 10 are 4,6,7,8. So a(9) = 4.
MAPLE
A131187 := proc(n) local divs ; divs := ( numtheory[divisors](n) union numtheory[divisors](n+1) ) minus {n, n+1} ; n-1-nops(divs) ; end: seq(A131187(n), n=1..80) ; # R. J. Mathar, Oct 28 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Sep 25 2007
EXTENSIONS
More terms from R. J. Mathar, Oct 28 2007
STATUS
approved