OFFSET
1,2
FORMULA
a(p) = (p + 1) / 2 for all odd prime p.
a(n) = n <=> n term of union of A000079 and A000396. (If there are no odd perfect numbers also of A317306).
a(n) = floor(A088580(n)/2). - Omar E. Pol, Dec 31 2023
MATHEMATICA
Array[Floor[(DivisorSigma[1, #] + 1)/2] &, 120] (* Michael De Vlieger, Dec 31 2023 *)
PROG
(Julia)
using Nemo
A368582(n::Int) = div(divisor_sigma(n, 1) + 1, 2)
println([A368582(n) for n in 1:68])
(PARI) a(n) = (sigma(n)+1)\2; \\ Michel Marcus, Jan 03 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Dec 31 2023
STATUS
approved