cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Feb 20 2023

Keywords

Comments

Because the algorithm for computing this sequence (see the PARI program) starts with s set to the number of divisors, and s is decremented at most once on each iteration in the loop over the first differences of the divisors, and because there is one less difference than there are divisors, it implies that a(n) >= 1 for all n.
Note that if a(n) = 1, then A088722(n) = 0, but not vice versa, i.e., the positions of 1's in this sequence is just a subsequence of A088725. See A360129 for the exceptions.

Crossrefs

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); };

Formula

a(n) = A060764(n) - A360118(n).
a(n) <= A000005(n).