login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A349273 Number of odd divisors of prime(n) - 1. 0
1, 1, 1, 2, 2, 2, 1, 3, 2, 2, 4, 3, 2, 4, 2, 2, 2, 4, 4, 4, 3, 4, 2, 2, 2, 3, 4, 2, 4, 2, 6, 4, 2, 4, 2, 6, 4, 5, 2, 2, 2, 6, 4, 2, 3, 6, 8, 4, 2, 4, 2, 4, 4, 4, 1, 2, 2, 8, 4, 4, 4, 2, 6, 4, 4, 2, 8, 4, 2, 4, 2, 2, 4, 4, 8, 2, 2, 6, 3, 4, 4, 8, 4, 4, 4, 4, 2, 4, 4, 8, 2, 2, 6, 6, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
a(n) is odd if and only if prime(n) is in A249410. - Jianing Song, Nov 14 2021
LINKS
FORMULA
a(n) = A001227(A006093(n)).
MATHEMATICA
a[n_] := DivisorSigma[0, (k = Prime[n] - 1)/2^IntegerExponent[k, 2]]; Array[a, 100] (* Amiram Eldar, Jun 03 2021 *)
PROG
(Magma) [NumberOfDivisors(p-1)/Valuation(2*p-2, 2): p in PrimesUpTo(500)];
(Python)
from sympy import divisors, prime
def a(n): return sum(d%2 for d in divisors(prime(n)-1))
print([a(n) for n in range(1, 96)]) # Michael S. Branicky, Jul 04 2021
(PARI) a(n) = sumdiv(prime(n)-1, d, d%2); \\ Michel Marcus, Dec 18 2021
CROSSREFS
Sequence in context: A260372 A037180 A241675 * A091222 A316506 A294884
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 28 22:05 EST 2023. Contains 367422 sequences. (Running on oeis4.)