A063960 Sum of non-unitary prime divisors of n!: sum of those prime divisors for which the exponent in the prime factorization exceeds 1.
0, 0, 0, 2, 2, 5, 5, 5, 5, 10, 10, 10, 10, 17, 17, 17, 17, 17, 17, 17, 17, 28, 28, 28, 28, 41, 41, 41, 41, 41, 41, 41, 41, 58, 58, 58, 58, 77, 77, 77, 77, 77, 77, 77, 77, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 129, 129, 129, 129, 160, 160, 160, 160
Offset: 1
Examples
20! = (2^18)*(3^8)*(5^4)*(7^2)*11*13*17*19, the non-unitary prime divisors are {2, 3, 5, 7}, so a(20) = 2 + 3 + 5 + 7 = 17.
Links
- Harry J. Smith, Table of n, a(n) for n = 1..1000
Programs
-
Maple
seq(add(j, j=select(isprime, [$1..iquo(n,2)])), n=1..65); # Peter Luschny, Nov 28 2022
-
Mathematica
Join[{0,0,0},Table[Total[Transpose[Select[FactorInteger[n!], Last[#]>1&]][[1]]],{n,4,70}]] (* Harvey P. Dale, Jun 19 2013 *)
-
PARI
{ for (n=1, 1000, f=factor(n!)~; a=0; for (i=1, length(f), if (f[2, i]>1, a+=f[1, i])); write("b063960.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 04 2009
Formula
a(n) = Sum_{i=1..floor(n/2)} i * A010051(i). - Wesley Ivan Hurt, Oct 31 2017
a(n) = A034387(floor(n/2)) for n >= 2. - Georg Fischer, Nov 28 2022
a(n) = A063958(n!). - Amiram Eldar, Jul 24 2024
Comments