A266227 a(n) = floor(Sum_{d|n} 1/sigma(d)).
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1
Offset: 1
Keywords
Examples
For n = 6; a(6) = floor(Sum_{d|6} 1/sigma(d)) = floor(1/1 + 1/3 + 1/4 + 1/12) = floor(5/3) = 1.
Links
- Antti Karttunen, Table of n, a(n) for n = 1..16384
Crossrefs
Programs
-
Magma
[Floor(&+[1/SumOfDivisors(d): d in Divisors(n)]): n in [1..100]]
-
Mathematica
A266227[n_] := Floor[DivisorSum[n, 1/DivisorSigma[1, #]&]]; Array[A266227, 100] (* Paolo Xausa, Feb 06 2024 *)
-
PARI
A266227(n) = { my(s=sumdiv(n,d,1/sigma(d))); (numerator(s) \ denominator(s)); }; \\ Antti Karttunen, Nov 19 2017
Comments