OFFSET
1,6
COMMENTS
Number of divisors of n that belong to A000043.
MATHEMATICA
a[n_] := DivisorSum[n, 1 &, PrimeQ[2^# - 1] &]; Array[a, 100] (* Amiram Eldar, Dec 27 2024 *)
PROG
(Magma) [#[d: d in Divisors(n) | IsPrime(2^d-1)]: n in [1..100]];
(PARI) a(n) = sumdiv(n, d, isprime(d) && ispseudoprime(2^d-1)); \\ Michel Marcus, Dec 28 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Dec 26 2024
STATUS
approved