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!)
A215486 n - 1 mod phi(n), where phi(n) is Euler's totient function. 4
0, 0, 0, 1, 0, 1, 0, 3, 2, 1, 0, 3, 0, 1, 6, 7, 0, 5, 0, 3, 8, 1, 0, 7, 4, 1, 8, 3, 0, 5, 0, 15, 12, 1, 10, 11, 0, 1, 14, 7, 0, 5, 0, 3, 20, 1, 0, 15, 6, 9, 18, 3, 0, 17, 14, 7, 20, 1, 0, 11, 0, 1, 26, 31, 16, 5, 0, 3, 24, 21, 0, 23, 0, 1, 34, 3, 16, 5, 0, 15, 26, 1, 0, 11, 20, 1, 30, 7, 0, 17 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,8
COMMENTS
Lehmer conjectured that a(n) = 0 only when n is 1 or prime.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
a(8) = 3 because 8 - 1 mod phi(8) = 3.
a(9) = 2 because 9 - 1 mod phi(9) = 2.
a(10) = 1 because 10 - 1 mod phi(10) = 1.
MATHEMATICA
Table[Mod[n - 1, EulerPhi[n]], {n, 2, 100}]
PROG
(Magma) [(n-1) mod EulerPhi(n): n in [2..90]]; // Bruno Berselli, Feb 18 2013
(Maxima) makelist(mod(n-1, totient(n)), n, 2, 90); /* Bruno Berselli, Feb 18 2013 */
(PARI) a(n)=(n-1)%eulerphi(n) \\ Charles R Greathouse IV, Dec 29 2013
CROSSREFS
Sequence in context: A355340 A275327 A359677 * A083721 A158459 A319666
KEYWORD
nonn,easy
AUTHOR
Alonso del Arte, Feb 17 2013, based on an idea from Balarka Sen.
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 June 30 02:05 EDT 2024. Contains 373859 sequences. (Running on oeis4.)