OFFSET
1,2
COMMENTS
1 = 0! = 1! is counted once.
The only possible terms are 1, 2, and 3.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
a[n_] := Module[{f = 1, k = 1, c = 0}, While[f <= n, If[Divisible[n, f] && CoprimeQ[f, n/f], c++]; k++; f *= k]; c]; Array[a, 100]
PROG
(PARI) a(n) = {my(f = 1, k = 1, c = 0); while(f <= n, if(!(n % f) && gcd(f, n/f) == 1, c++); k++; f *= k); c; }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Dec 23 2025
STATUS
approved
