A360119 Number of divisors of n which are not also differences between consecutive divisors, minus the number of differences between consecutive divisors of n which are not also divisors of n. Here the differences are counted with repetition if they occur more than once.
1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 2, 1, 1, 1, 4, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 4, 1, 1, 1, 3, 1, 4, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 4, 1, 2, 1, 1, 1, 5, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 6, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 6, 1, 1, 1, 3, 1, 3, 1, 1, 1
Offset: 1
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 1..65537
Programs
-
PARI
A360119(n) = { my(d=divisors(n), erot=vecsort(vector(#d-1, k, d[k+1] - d[k])), s=#d); for(i=1,#erot,if(n%erot[i], s--, if(1==i || erot[i]!=erot[i-1], s--))); (s); };
Comments