OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Rafael Jakimczuk and Matilde Lalín, Asymptotics of sums of divisor functions over sequences with restricted factorization structure, Notes on Number Theory and Discrete Mathematics, Vol. 28, No. 4 (2022), pp. 617-634; p. 619, eq. (2).
FORMULA
MATHEMATICA
f[p_, e_] := (p^(e+1)-1)/(p-1); s[n_] := Module[{fct = FactorInteger[n]}, If[AllTrue[fct[[;; , 2]], # < 3 &], Times @@ f @@@ fct, Nothing]]; s[1] = 1; Array[s, 100]
PROG
(PARI) lista(max) = for(k = 1, max, my(f = factor(k), iscubefree = 1); for(i = 1, #f~, if(f[i, 2] > 2, iscubefree = 0; break)); if(iscubefree, print1(sigma(f), ", ")));
(Python)
from sympy import mobius, integer_nthroot, divisor_sigma
def A366440(n):
def f(x): return n+x-sum(mobius(k)*(x//k**3) for k in range(1, integer_nthroot(x, 3)[0]+1))
m, k = n, f(n)
while m != k:
m, k = k, f(k)
return divisor_sigma(m) # Chai Wah Wu, Aug 06 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Oct 10 2023
STATUS
approved