|
|
A102048
|
|
Exponent of A046021(n) (least inverse of Kempner function A002034) when written as a power of A006530(n) (largest prime dividing n), with a(1) = 1.
|
|
2
|
|
|
1, 1, 1, 2, 1, 2, 1, 5, 3, 2, 1, 5, 1, 2, 3, 12, 1, 7, 1, 4, 3, 2, 1, 10, 5, 2, 11, 4, 1, 7, 1, 27, 3, 2, 5, 16, 1, 2, 3, 9, 1, 6, 1, 4, 10, 2, 1, 22, 7, 11, 3, 4, 1, 24, 5, 9, 3, 2, 1, 14, 1, 2, 10, 58, 5, 6, 1, 4, 3, 11, 1, 33, 1, 2, 17, 4, 7, 6, 1, 19, 37, 2, 1, 13, 5, 2, 3, 8, 1, 21, 7, 4, 3, 2, 5
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,4
|
|
REFERENCES
|
R. L. Graham, D. E. Knuth and O. Patashnik, Factorial Factors, Section 4.4 in Concrete Mathematics, 2nd ed. Reading, MA: Addison-Wesley, pp. 111-115, 1994.
|
|
LINKS
|
Eric Weisstein's World of Mathematics, Factorial
|
|
FORMULA
|
a(n) = 1 + Sum_{k=1..floor(log(n-1)/log(P))} floor((n-1)/P^k) for n > 1, where P = A006530(n) is the greatest prime factor of n.
|
|
EXAMPLE
|
|
|
MATHEMATICA
|
With[{p=First[Last[FactorInteger[n, FactorComplete->True]]]}, 1+Sum[Floor[(n-1)/p^k], {k, Floor[Log[n-1]/Log[p]]}]]
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|