cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A349711 a(n) = Sum_{d|n} sopfr(d) * sopfr(n/d).

This page as a plain text file.
%I A349711 #22 Nov 28 2021 12:09:32
%S A349711 0,0,0,4,0,12,0,16,9,20,0,44,0,28,30,40,0,54,0,68,42,44,0,104,25,52,
%T A349711 36,92,0,124,0,80,66,68,70,147,0,76,78,152,0,164,0,140,108,92,0,200,
%U A349711 49,110,102,164,0,144,110,200,114,116,0,298,0,124,144,140,130,244,0,212,138,236,0,300,0,148,140
%N A349711 a(n) = Sum_{d|n} sopfr(d) * sopfr(n/d).
%C A349711 Dirichlet convolution of A001414 with itself.
%H A349711 Antti Karttunen, <a href="/A349711/b349711.txt">Table of n, a(n) for n = 1..20000</a>
%F A349711 Dirichlet g.f.: ( zeta(s) * Sum_{p prime} p/(p^s-1) )^2.
%F A349711 a(p^k) = (k^3-k)*p^2/6 = A000292(k-1)*p^2 for p prime. - _Chai Wah Wu_, Nov 28 2021
%p A349711 b:= proc(n) option remember; add(i[1]*i[2], i=ifactors(n)[2]) end:
%p A349711 a:= n-> add(b(d)*b(n/d), d=numtheory[divisors](n)):
%p A349711 seq(a(n), n=1..75);  # _Alois P. Heinz_, Nov 26 2021
%t A349711 sopfr[1] = 0; sopfr[n_] := Plus @@ Times @@@ FactorInteger@n; a[n_] := Sum[sopfr[d] sopfr[n/d], {d, Divisors[n]}]; Table[a[n], {n, 1, 75}]
%o A349711 (PARI) sopfr(n) = (n=factor(n))[, 1]~*n[, 2]; \\ A001414
%o A349711 a(n) = sumdiv(n, d, sopfr(d)*sopfr(n/d)); \\ _Michel Marcus_, Nov 26 2021
%o A349711 (Python)
%o A349711 from itertools import product
%o A349711 from sympy import factorint
%o A349711 def A349711(n):
%o A349711     f = factorint(n)
%o A349711     plist, m = list(f.keys()), sum(f[p]*p for p in f)
%o A349711     return sum((lambda x: x*(m-x))(sum(d[i]*p for i, p in enumerate(plist))) for d in product(*(list(range(f[p]+1)) for p in plist))) # _Chai Wah Wu_, Nov 27 2021
%Y A349711 Cf. A000292, A001414, A034761, A318366, A349712.
%K A349711 nonn,look
%O A349711 1,4
%A A349711 _Ilya Gutkovskiy_, Nov 26 2021