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!)
A360112 Number of solutions to m^(1 + 2^v(n-1)) == -m (mod n), where v(n) = A007814(n) is the 2-adic valuation of n, and 0 <= m < n. 3
2, 1, 2, 1, 4, 1, 2, 1, 4, 1, 4, 1, 4, 3, 2, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 8, 1, 2, 1, 4, 3, 4, 1, 4, 3, 4, 1, 8, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 1, 4, 3, 4, 1, 4, 1, 8, 1, 4, 1, 2, 1, 8, 1, 4, 1, 8, 1, 4, 1, 4, 3, 4, 1, 8, 1, 4, 1, 4, 1, 8, 5, 4, 3, 4, 1, 8, 3, 4, 1, 4, 3, 4, 1, 4, 1, 4, 1, 8, 1, 4, 1, 4, 1, 4, 1, 8, 3, 4, 1, 8, 3, 4, 1, 4, 3, 8, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
PROG
(PARI) A360112(n) = { my(f=factor(n), x = 1+(2^valuation(n-1, 2))); sum(m=0, n-1, !((m + m^x)%n)); };
CROSSREFS
Cf. A007814, A345330 (composite numbers k, for which a(k) = 1), A345331 (odd numbers k, for which a(k) > 1), A360113, A360114 (positions of 1's).
Sequence in context: A135517 A327395 A327404 * A333570 A363320 A351032
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 10 2023
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 July 31 23:10 EDT 2024. Contains 374809 sequences. (Running on oeis4.)