OFFSET
1,6
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Paul Erdős and Jean-Louis Nicolas, Grandes valeurs de fonctions liées aux diviseurs premiers consécutifs d'un entier, in: Jean-Marie de Koninck and Claude Levesque (eds.), Théorie des nombres / Number Theory, Proceedings of the International Number Theory Conference held at Université Laval, July 5-18, 1987, De Gruyter, 1989; alternative link.
MATHEMATICA
a[n_] := Module[{p = FactorInteger[n][[;; , 1]]}, Denominator[Total[Most[p]/Rest[p]]]]; Array[a, 100]
PROG
(PARI) a(n) = {my(p = factor(n)[, 1]); denominator(sum(i = 1, #p-1, p[i]/p[i+1])); }
CROSSREFS
KEYWORD
nonn,easy,frac,new
AUTHOR
Amiram Eldar, Mar 03 2025
STATUS
approved