OFFSET
1,6
COMMENTS
This sequence is a variant of A060682; here we consider the quotients, there the differences of consecutive divisors.
The sequence is unbounded since a(n!) >= n-1 for any n > 0.
FORMULA
a(n) = 1 iff n is a prime power (A246655).
EXAMPLE
For n = 42:
- the divisors of 42 are: 1, 2, 3, 6, 7, 14, 21, 42,
- the corresponding quotients are: 1/2, 2/3, 1/2, 6/7, 1/2, 2/3, 1/2,
- which corresponds to the set { 1/2, 2/3, 6/7 },
- hence a(42) = 3.
PROG
(PARI) a(n) = my (d=divisors(n)); #Set(vector(#d-1, k, d[k]/d[k+1]))
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Dec 29 2019
STATUS
approved