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!)
A055006 a(n) is the least multiple of n such that a(n) = 1 mod k for all integers k with 1 < k < n and k relatively prime to n. 0
1, 2, 3, 4, 25, 6, 301, 736, 2241, 190, 25201, 4236, 83161, 19306, 64065, 135136, 7207201, 85086, 49008961, 49468420, 36951201, 27776386, 698377681, 855189336, 25700298625, 2445441076, 74364290001, 13624600276, 2248776129601, 6254036790, 39594522567601 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Table[Block[{m = 1, t = Select[Range[2, n - 1], CoprimeQ[#, n] &]}, While[! AllTrue[t, Mod[m n, #] == 1 &], m++]; m n], {n, 20}] (* Michael De Vlieger, Mar 08 2022 *)
PROG
(PARI) isok(m, n) = for (k=2, n-1, if ((gcd(k, n)==1) && ((m % k) !=1), return(0))); return(1);
a(n) = my(m=n); while (!isok(m, n), m+=n); m; \\ Michel Marcus, Mar 08 2022
CROSSREFS
Sequence in context: A287433 A235041 A080613 * A139050 A043309 A104386
KEYWORD
nonn
AUTHOR
Stephen G Penrice, May 30 2000
EXTENSIONS
More terms from Sean A. Irvine, Mar 07 2022
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 April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)