editing
approved
editing
approved
easy,nonn,look,easy,new
approved
editing
editing
approved
Alois P. Heinz, <a href="/A289506/b289506.txt">Table of n, a(n) for n = 1..20000</a>
# second Maple program:
a:= n-> add(numtheory[pi](i[1])^2*i[2], i=ifactors(n)[2]):
seq(a(n), n=1..80); # Alois P. Heinz, Aug 05 2017
approved
editing
editing
approved
The sum of squares of the elements of Write n as a finite multiset product of positive integers, the multiset primes p_{s_1}*p_{e_js_2} being indexed by n = Product_j *p_{e_js_3}, *... where p_{e_j} is i denotes the e_ji-th prime; then a(n) = s_1^2 + s_2^2 + s_3^2 + ...
When gcd_j(e_s_j) = 1, a(n) is the modulus of the determinant whose first row consists of the e_s_j, and whose remaining rows form a lattice basis for the space of integer solutions of Sum_j e_s_jx_j = 0. See A289507.
See also A289507, where terms are (Sum_j e_s_j^2)/gcd_j(e_s_j) rather than Sum_j e_s_j^2 (this sequence).
Also a(n) = Sum_j e_s_j^2, where the multiset of e_s_j's is the multiset of k's, each with multiplicity r_k.
proposed
editing
editing
proposed
For n = Product_k p_k^{r_k}, a(n) = Sum_k k^2 * r_k.
Also a(n) = Sum_j e_j^2, where the multiset of e_j's is the multiset of k's, each with multiplicity r_k.
Further a(p_k) = k^2 and a(2^r) = r.
(PARI) a(n) = my(f=factor(n)); sum(k=1, #f~, primepi(f[k, 1])^2*f[k, 2]); \\ Michel Marcus, Jul 19 2017
proposed
editing
editing
proposed
For n = Product_k p_k^{r_k}, a(n) = Sum_k k^2 . * r_k.
For n = 12 = 2^2 . * 3 = p_1 . * p_1 . * p_2, the multiset is {1,1,2} and so a(12) = 1^2 + 1^2 + 2^2 = 6.
proposed
editing