Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
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!)
A362254 Reciprocal of n modulo largest prime smaller than n. 2
1, 1, 2, 1, 3, 1, 4, 5, 2, 1, 6, 1, 7, 9, 10, 1, 9, 1, 10, 13, 5, 1, 12, 8, 6, 14, 4, 1, 15, 1, 16, 21, 8, 25, 26, 1, 19, 25, 28, 1, 21, 1, 22, 29, 11, 1, 24, 16, 12, 19, 8, 1, 27, 18, 40, 32, 9, 1, 30, 1, 31, 41, 46, 49, 51, 1, 34, 45, 17, 1, 36, 1, 37, 49 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,3
LINKS
FORMULA
a(n) = 1 <=> n in { A008864 }.
MAPLE
a:= n-> n&^(-1) mod prevprime(n):
seq(a(n), n=3..100);
PROG
(Python)
from sympy import prevprime
def A362254(n): return pow(n, -1, prevprime(n)) # Chai Wah Wu, Apr 13 2023
CROSSREFS
Sequence in context: A219356 A142878 A299774 * A341866 A300242 A293892
KEYWORD
nonn,look
AUTHOR
Alois P. Heinz, Apr 13 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 September 11 13:40 EDT 2024. Contains 375836 sequences. (Running on oeis4.)